fix(web): ui
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user