improve styling of add to file btn

This commit is contained in:
Test 2024-11-21 18:23:17 -08:00
parent 3969d74f47
commit 8a4118db1d
4 changed files with 8 additions and 9 deletions

View file

@ -29,7 +29,7 @@ export default function AddFileButton() {
<div className="relative">
<Listbox.Button
ref={buttonRef}
className="bg-lightgray/10 border-lightgray flex cursor-pointer items-center justify-between rounded-md border-[0.5px] border-solid px-0 shadow-sm transition-colors"
className="bg-vsc-editor-background border-lightgray/50 flex cursor-pointer items-center justify-between rounded-md border border-solid px-0 shadow-sm transition-colors"
>
<div
className="flex items-center gap-1 px-1.5 hover:brightness-125"
@ -45,17 +45,15 @@ export default function AddFileButton() {
</span>
</div>
<div className="border-lightgray h-4 w-[1px] border-y-0 border-l-0 border-r border-solid" />
<div className="border-lightgray/50 h-4 w-[1px] border-y-0 border-l-0 border-r border-solid" />
<ChevronDownIcon className="text-vsc-foreground h-2.5 w-2.5 cursor-pointer px-1 brightness-75 hover:brightness-125" />
</Listbox.Button>
<Listbox.Options
className={`bg-vsc-input-background border-lightgray absolute right-0 top-full z-50 mt-1 min-w-fit whitespace-nowrap rounded-md border border-solid px-1 py-0 shadow-lg`}
>
<Listbox.Options className="bg-vsc-editor-background border-lightgray/50 absolute right-0 top-full z-50 mt-1 min-w-fit whitespace-nowrap rounded-md border border-solid px-1 py-0 shadow-lg">
<Listbox.Option
value="addAllFiles"
className="text-vsc-foreground hover:bg-lightgray/33 block w-full cursor-pointer px-2 py-1 text-left text-[10px] brightness-75 hover:brightness-125"
className="text-vsc-foreground block w-full cursor-pointer px-2 py-1 text-left text-[10px] brightness-75 hover:brightness-125"
>
Add all open files
</Listbox.Option>

View file

@ -57,7 +57,7 @@ export default function WorkingSet() {
</div>
{hasCodeToEdit && (
<ul className="no-scrollbar mb-1.5 mt-1 max-h-[50vh] list-outside list-none space-y-1.5 overflow-y-auto pl-0">
<ul className="no-scrollbar mb-1.5 mt-1 max-h-[50vh] list-outside list-none overflow-y-auto pl-0">
{codeToEditItems}
</ul>
)}

View file

@ -53,7 +53,7 @@ export default function CodeToEditListItem({
return (
<li
className="flex cursor-pointer flex-col"
className="group flex cursor-pointer flex-col"
onClick={() => setShowCodeSnippet((showCodeSnippet) => !showCodeSnippet)}
>
<div
@ -88,7 +88,7 @@ export default function CodeToEditListItem({
{title}
</span>
</div>
<div className="flex gap-1.5">
<div className="invisible flex gap-1.5 group-hover:visible">
<XMarkIcon
onClick={(e) => {
e.stopPropagation();
@ -98,6 +98,7 @@ export default function CodeToEditListItem({
/>
</div>
</div>
{showCodeSnippet && (
<div className="max-h-[25vh] overflow-y-auto px-1 py-2">
<NoPaddingWrapper>