summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2026-01-17 00:28:44 +0000
committerDavid Hill <[email protected]>2026-01-17 00:55:13 +0000
commitd23c21023ababec01f2a80285f0f20fef1570d8e (patch)
treeaf740d653bcaab858e41d9f4ee0d6a2d0ec71446 /packages
parentdfa2a9f22556148390551b6581b1aaa6c4ded2e5 (diff)
downloadopencode-d23c21023ababec01f2a80285f0f20fef1570d8e.tar.gz
opencode-d23c21023ababec01f2a80285f0f20fef1570d8e.zip
fix: refine search modal styling and list component
Diffstat (limited to 'packages')
-rw-r--r--packages/app/src/components/dialog-select-file.tsx6
-rw-r--r--packages/ui/src/components/list.css11
2 files changed, 12 insertions, 5 deletions
diff --git a/packages/app/src/components/dialog-select-file.tsx b/packages/app/src/components/dialog-select-file.tsx
index 621b2fb21..dee87b558 100644
--- a/packages/app/src/components/dialog-select-file.tsx
+++ b/packages/app/src/components/dialog-select-file.tsx
@@ -134,14 +134,14 @@ export function DialogSelectFile() {
})
return (
- <Dialog title="Search">
+ <Dialog class="pt-3 pb-0">
<List
- search={{ placeholder: "Search files and commands", autofocus: true, hideIcon: true, class: "px-3" }}
+ search={{ placeholder: "Search files and commands", autofocus: true, hideIcon: true, class: "pl-3 pr-2 !mb-0" }}
emptyMessage="No results found"
items={items}
key={(item) => item.id}
filterKeys={["title", "description", "category"]}
- groupBy={(item) => (grouped() ? item.category : "")}
+ groupBy={(item) => item.category}
onMove={handleMove}
onSelect={handleSelect}
>
diff --git a/packages/ui/src/components/list.css b/packages/ui/src/components/list.css
index 651f5ef97..03a77df05 100644
--- a/packages/ui/src/components/list.css
+++ b/packages/ui/src/components/list.css
@@ -56,11 +56,14 @@
width: 20px;
height: 20px;
background-color: transparent;
+ opacity: 0.5;
+ transition: opacity 0.15s ease;
&:hover:not(:disabled),
&:focus:not(:disabled),
&:active:not(:disabled) {
background-color: transparent;
+ opacity: 0.7;
}
&:hover:not(:disabled) [data-slot="icon-svg"] {
@@ -125,10 +128,14 @@
display: flex;
flex-direction: column;
+ &:last-child {
+ padding-bottom: 12px;
+ }
+
[data-slot="list-header"] {
display: flex;
z-index: 10;
- padding: 0 12px 8px 8px;
+ padding: 8px 12px 8px 12px;
justify-content: space-between;
align-items: center;
align-self: stretch;
@@ -136,7 +143,7 @@
position: sticky;
top: 0;
- color: var(--text-base);
+ color: var(--text-weak);
/* text-14-medium */
font-family: var(--font-family-sans);