summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop/src/ui
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-11-14 12:38:52 -0600
committeropencode <[email protected]>2025-11-18 17:07:34 +0000
commit4069999b782cc00d4e707f5eca32082bdfad45bc (patch)
treed5c13cdd361fc79b14250b4b426a0a1195f7a01c /packages/desktop/src/ui
parent5ba9b47b3c87dfb044c30857e56959c8eff0c8c1 (diff)
downloadopencode-4069999b782cc00d4e707f5eca32082bdfad45bc.tar.gz
opencode-4069999b782cc00d4e707f5eca32082bdfad45bc.zip
wip(desktop): new layout work
Diffstat (limited to 'packages/desktop/src/ui')
-rw-r--r--packages/desktop/src/ui/file-icon.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/desktop/src/ui/file-icon.tsx b/packages/desktop/src/ui/file-icon.tsx
index d31a741e0..53b3c1e69 100644
--- a/packages/desktop/src/ui/file-icon.tsx
+++ b/packages/desktop/src/ui/file-icon.tsx
@@ -9,12 +9,13 @@ export type FileIconProps = JSX.GSVGAttributes<SVGSVGElement> & {
}
export const FileIcon: Component<FileIconProps> = (props) => {
- const [local, rest] = splitProps(props, ["node", "class", "expanded"])
+ const [local, rest] = splitProps(props, ["node", "class", "classList", "expanded"])
const name = createMemo(() => chooseIconName(local.node.path, local.node.type, local.expanded || false))
return (
<svg
{...rest}
classList={{
+ ...(local.classList ?? {}),
"shrink-0 size-4": true,
[local.class ?? ""]: !!local.class,
}}