mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-16 14:03:21 -04:00
[Fix] Add location button went ugly
This commit is contained in:
3 files changed
+6
-7
No files matched your search
@@ -119,13 +119,7 @@ const LibrarySection = () => {
|
||||
</SidebarLink>
|
||||
);
|
||||
})}
|
||||
{(locations.data?.length || 0) < 4 && (
|
||||
<AddLocationButton
|
||||
className="cursor-normal mt-1 w-full
|
||||
rounded border border-dashed border-sidebar-line px-2 py-1 text-center text-xs
|
||||
font-medium text-ink-faint transition hover:border-sidebar-selected"
|
||||
/>
|
||||
)}
|
||||
{(locations.data?.length || 0) < 4 && <AddLocationButton />}
|
||||
</Section>
|
||||
{!!tags.data?.length && (
|
||||
<Section
|
||||
|
||||
@@ -10,6 +10,8 @@ export const AddLocationButton = (props: ButtonProps) => {
|
||||
<>
|
||||
<Button
|
||||
{...props}
|
||||
variant="dotted"
|
||||
className="cursor-normal mt-1 w-full"
|
||||
onClick={() =>
|
||||
openDirectoryPickerDialog(platform)
|
||||
.then((path) => {
|
||||
|
||||
@@ -46,6 +46,9 @@ const styles = cva(
|
||||
outline: [
|
||||
'border-sidebar-line/60 hover:border-sidebar-line active:border-sidebar-line active:border-sidebar-line/30'
|
||||
],
|
||||
dotted: [
|
||||
`rounded border border-dashed border-sidebar-line/70 text-center text-xs font-medium text-ink-faint transition hover:border-sidebar-line hover:bg-sidebar-selected/5`
|
||||
],
|
||||
gray: [
|
||||
'bg-app-button active:bg-app-selected hover:bg-app-hover',
|
||||
'border-app-line hover:border-app-line active:border-app-active'
|
||||
|
||||
Reference in new issue
Block a user