diff --git a/libs/remix-ui/vertical-icons-panel/src/lib/components/Icon.tsx b/libs/remix-ui/vertical-icons-panel/src/lib/components/Icon.tsx index ef97419ba9..49ffcf2387 100644 --- a/libs/remix-ui/vertical-icons-panel/src/lib/components/Icon.tsx +++ b/libs/remix-ui/vertical-icons-panel/src/lib/components/Icon.tsx @@ -86,7 +86,11 @@ const Icon = ({iconRecord, verticalIconPlugin, contextMenuAction, theme}: IconPr return ( <> - +
{ diff --git a/libs/remix-ui/workspace/src/lib/components/file-label.tsx b/libs/remix-ui/workspace/src/lib/components/file-label.tsx index ce1d6d513a..c9752a822d 100644 --- a/libs/remix-ui/workspace/src/lib/components/file-label.tsx +++ b/libs/remix-ui/workspace/src/lib/components/file-label.tsx @@ -1,5 +1,7 @@ // eslint-disable-next-line no-use-before-define import {fileDecoration} from '@remix-ui/file-decorators' +import {CustomTooltip} from '@remix-ui/helper' +import {FormattedMessage} from 'react-intl' import React, {useEffect, useRef, useState} from 'react' import {FileType} from '../types' export interface FileLabelProps { @@ -65,18 +67,28 @@ export const FileLabel = (props: FileLabelProps) => { labelRef.current.innerText = file.name } + // The tooltip is setted up on the label and not the whole line to avoid unnecessary tooltips on the short filenames. + // It has the delay for the same reason. return (
- - {file.name} - + + + {file.name} + +
) } diff --git a/libs/remix-ui/workspace/src/lib/css/file-explorer.css b/libs/remix-ui/workspace/src/lib/css/file-explorer.css index b67c5f24c7..c49a0a54a7 100644 --- a/libs/remix-ui/workspace/src/lib/css/file-explorer.css +++ b/libs/remix-ui/workspace/src/lib/css/file-explorer.css @@ -33,7 +33,11 @@ input[type="file"] { margin-left : 20px; } .remixui_items { - display : inline + display : inline; + white-space : nowrap; + overflow : hidden; + text-overflow : ellipsis; + max-width : 90%; } .remixui_remove { margin-left : auto; diff --git a/libs/remix-ui/workspace/src/lib/css/remix-ui-workspace.css b/libs/remix-ui/workspace/src/lib/css/remix-ui-workspace.css index cc26e166be..24c7d462c6 100644 --- a/libs/remix-ui/workspace/src/lib/css/remix-ui-workspace.css +++ b/libs/remix-ui/workspace/src/lib/css/remix-ui-workspace.css @@ -40,7 +40,7 @@ cursor : pointer; } .remixui_treeview { - overflow-y : auto; + overflow-x : hidden; } .remixui_dialog { display: flex;