Feat: Adjust the style of the canvas node #10703 (#10795)

### What problem does this PR solve?

Feat: Adjust the style of the canvas node #10703


### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-10-27 10:36:36 +08:00
committed by GitHub
parent 50e93d1528
commit 24ab857471
122 changed files with 290 additions and 7156 deletions

View File

@ -5,7 +5,12 @@ import {
} from '@/components/ui/collapsible';
import { cn } from '@/lib/utils';
import { CollapsibleProps } from '@radix-ui/react-collapsible';
import { ChevronDown, ChevronUp } from 'lucide-react';
import {
ChevronDown,
ChevronUp,
ListChevronsDownUp,
ListChevronsUpDown,
} from 'lucide-react';
import * as React from 'react';
import {
PropsWithChildren,
@ -14,7 +19,6 @@ import {
useEffect,
useState,
} from 'react';
import { IconFontFill } from './icon-font';
type CollapseProps = Omit<CollapsibleProps, 'title'> & {
title?: ReactNode;
@ -54,12 +58,11 @@ export function Collapse({
<CollapsibleTrigger className={'w-full'}>
<section className="flex justify-between items-center">
<div className="flex items-center gap-1">
<IconFontFill
name={`more`}
className={cn('size-4', {
'rotate-90': !currentOpen,
})}
></IconFontFill>
{currentOpen ? (
<ListChevronsUpDown className="size-4" />
) : (
<ListChevronsDownUp className="size-4 text-text-secondary" />
)}
<div
className={cn('text-text-secondary', {
'text-text-primary': open,