fix(web): ui

This commit is contained in:
zhaoying
2026-04-17 11:58:24 +08:00
parent 5a17b7fd0d
commit b8123fc84c
3 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ const colors = {
warning: 'rb:text-[#FF5D34] rb:border-[rgba(255,93,52,0.30)] rb:bg-[rgba(255,93,52,0.08)]',
default: 'rb:text-[#5B6167] rb:border-[rgba(91,97,103,0.30)] rb:bg-[rgba(91,97,103,0.08)]',
purple: 'rb:text-[#9C6FFF] rb:border-[rgba(156,111,255,0.25)] rb:bg-[rgba(156,111,255,0.06)]',
dark: 'rb:text-[#171719] rb:border-[rgba(23,23,25,0.25)] rb:border-[rgba(23,23,25,0.06)]'
dark: 'rb:text-[#171719] rb:border-[rgba(23,23,25,0.25)] rb:bg-[rgba(23,23,25,0.06)]'
}
/** Custom tag component with color themes */

View File

@@ -102,7 +102,7 @@ const MySharing: React.FC = () => {
setSelectedWorkspace(grouped[0].workspace.target_workspace_id)
setAppList(grouped[0].items)
}
}, [grouped])
}, [grouped, selectedWorkspace])
const handleSelectWorkspace = async (target_workspace_id: string) => {
if (target_workspace_id === selectedWorkspace) return

View File

@@ -103,8 +103,8 @@ const Editor: FC<LexicalEditorProps> =({
// Calculate line height based on size prop
const lineHeight = useMemo(() => {
return `${height ? height - 10 : size === 'small' && ['borderless', 'filled'].includes(variant) ? 18 : size === 'small' ? 16 : 20}px`
}, [size])
return `${height ? height - 10 : size === 'small' && variant === 'borderless' ? 18 : size === 'small' ? 16 : 20}px`
}, [size, height, variant])
// Calculate placeholder minimum height
const placeHolderMinheight = useMemo(() => {