diff --git a/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7W0Q5n-wU.woff2 b/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7W0Q5n-wU.woff2 new file mode 100644 index 0000000..c974fec Binary files /dev/null and b/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7W0Q5n-wU.woff2 differ diff --git a/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7W0Q5nw.woff2 b/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7W0Q5nw.woff2 new file mode 100644 index 0000000..980853f Binary files /dev/null and b/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7W0Q5nw.woff2 differ diff --git a/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7W0Q5n-wU.woff2 b/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7W0Q5n-wU.woff2 new file mode 100644 index 0000000..3d1a121 Binary files /dev/null and b/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7W0Q5n-wU.woff2 differ diff --git a/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7W0Q5n-wU.woff2 b/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7W0Q5n-wU.woff2 new file mode 100644 index 0000000..edd8346 Binary files /dev/null and b/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7W0Q5n-wU.woff2 differ diff --git a/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7W0Q5n-wU.woff2 b/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7W0Q5n-wU.woff2 new file mode 100644 index 0000000..822edcd Binary files /dev/null and b/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7W0Q5n-wU.woff2 differ diff --git a/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7W0Q5n-wU.woff2 b/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7W0Q5n-wU.woff2 new file mode 100644 index 0000000..d22d693 Binary files /dev/null and b/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7W0Q5n-wU.woff2 differ diff --git a/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7W0Q5n-wU.woff2 b/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7W0Q5n-wU.woff2 new file mode 100644 index 0000000..75c4362 Binary files /dev/null and b/src/app/fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7W0Q5n-wU.woff2 differ diff --git a/src/app/fonts/a b/src/app/fonts/a new file mode 100644 index 0000000..f664a48 Binary files /dev/null and b/src/app/fonts/a differ diff --git a/src/app/fonts/d.woff b/src/app/fonts/d.woff new file mode 100644 index 0000000..407f837 Binary files /dev/null and b/src/app/fonts/d.woff differ diff --git a/src/app/fonts/l b/src/app/fonts/l new file mode 100644 index 0000000..ed246d3 Binary files /dev/null and b/src/app/fonts/l differ diff --git a/src/app/globals.css b/src/app/globals.css index 9debf4f..8bb8d87 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -53,7 +53,7 @@ body { --destructive: #f1f5f9; --destructive-foreground: red; - --border: #e2e8f0; + --border: #e5e5e5; --input: #e2e8f0; --ring: #ccc; @@ -64,7 +64,7 @@ body { } .dark { - --background: #000; + --background: #0a0a0a; --foreground: #aaa; --color-surface: black; @@ -91,7 +91,7 @@ body { --destructive: red; --destructive-foreground: white; - --border: #313131; + --border: #262626; --input: #333; --ring: #444; @@ -304,3 +304,308 @@ For Markdown Side .mdx-content a { @apply text-blue-500 underline; } + +/* cyrillic-ext */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, + U+FE2E-FE2F; +} +/* cyrillic */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, + U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, + U+0329, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, + U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7W0Q5nw.woff2') + format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, + U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, + U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, + U+FE2E-FE2F; +} +/* cyrillic */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, + U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, + U+0329, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, + U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7W0Q5nw.woff2') + format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, + U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, + U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 600; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, + U+FE2E-FE2F; +} +/* cyrillic */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 600; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 600; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 600; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 600; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, + U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, + U+0329, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 600; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, + U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 600; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7W0Q5nw.woff2') + format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, + U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, + U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, + U+FE2E-FE2F; +} +/* cyrillic */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, + U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, + U+0329, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7W0Q5n-wU.woff2') + format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, + U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url('./fonts/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7W0Q5nw.woff2') + format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, + U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, + U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} diff --git a/src/components/gui/database-gui.tsx b/src/components/gui/database-gui.tsx index aa79eb9..9f805f8 100644 --- a/src/components/gui/database-gui.tsx +++ b/src/components/gui/database-gui.tsx @@ -23,7 +23,7 @@ import { Binoculars, GearSix, Table } from "@phosphor-icons/react"; export default function DatabaseGui() { const DEFAULT_WIDTH = 300; - const [defaultWidthPercentage, setDefaultWidthPercentage] = useState(20); + const [defaultWidthPercentage, setDefaultWidthPercentage] = useState(25); useEffect(() => { setDefaultWidthPercentage((DEFAULT_WIDTH / window.innerWidth) * 100); @@ -88,14 +88,14 @@ export default function DatabaseGui() { key: "database", name: "Schema", content: , - icon: , + icon:
, }, docDriver ? { key: "saved", name: "Queries", content: , - icon: , + icon: , } : undefined, collaborationDriver @@ -103,7 +103,7 @@ export default function DatabaseGui() { key: "setting", name: "Setting", content: , - icon: , + icon: , } : undefined, ].filter(Boolean) as SidebarTabItem[]; diff --git a/src/components/gui/save-doc-button.tsx b/src/components/gui/save-doc-button.tsx index a622fa8..601eee5 100644 --- a/src/components/gui/save-doc-button.tsx +++ b/src/components/gui/save-doc-button.tsx @@ -6,7 +6,7 @@ import { import { Button } from "../ui/button"; import { useDatabaseDriver } from "@/context/driver-provider"; import { useCallback, useState } from "react"; -import { LucideFolderGit, LucideLoader, LucideSave } from "lucide-react"; +import { LucideFolderGit, LucideLoader } from "lucide-react"; import { DropdownMenu, DropdownMenuContent, @@ -88,7 +88,7 @@ export default function SaveDocButton({ {loading ? ( ) : ( - + <> )} Save diff --git a/src/components/gui/schema-sidebar.tsx b/src/components/gui/schema-sidebar.tsx index e3a386f..f65845b 100644 --- a/src/components/gui/schema-sidebar.tsx +++ b/src/components/gui/schema-sidebar.tsx @@ -20,15 +20,15 @@ export default function SchemaView() { return (
-
-
-

Tables

+
+
+

Tables

-
-
- +
+
+
{ setSearch(e.currentTarget.value); }} diff --git a/src/components/gui/sidebar-tab.tsx b/src/components/gui/sidebar-tab.tsx index 1fca4ff..d1372f2 100644 --- a/src/components/gui/sidebar-tab.tsx +++ b/src/components/gui/sidebar-tab.tsx @@ -35,26 +35,13 @@ export default function SidebarTab({ tabs }: Readonly) { const config = useConfig(); - const color = config.color; - let bgPrimary = "border-l-gray-500 dark:border-l-gray-600"; - - if (color === "red") { - bgPrimary = "border-l-red-500 dark:border-l-red-600"; - } else if (color === "yellow") { - bgPrimary = "border-l-yellow-500 dark:border-l-yellow-600"; - } else if (color === "green") { - bgPrimary = "border-l-green-500 dark:border-l-green-600"; - } else if (color === "gray") { - bgPrimary = "border-l-gray-500 dark:border-l-gray-600"; - } - return ( -
+
-
+
-
+
) { } }} className={cn( - "cursor cursor-pointer h-12 w-12 flex flex-col gap-0.5 justify-center items-center rounded-t hover:text-primary", + "cursor cursor-pointer h-10 w-10 flex flex-col gap-0.5 justify-center items-center hover:text-neutral-900 dark:hover:text-neutral-100 text-neutral-400 dark:text-neutral-600", selectedIndex === idx - ? "bg-secondary rounded-lg text-primary" + ? "bg-neutral-200 dark:bg-neutral-800 rounded-xl text-neutral-900 dark:text-neutral-100" : undefined )} > diff --git a/src/components/gui/sidebar/saved-doc-tab/index.tsx b/src/components/gui/sidebar/saved-doc-tab/index.tsx index bbdffe5..aad9e0b 100644 --- a/src/components/gui/sidebar/saved-doc-tab/index.tsx +++ b/src/components/gui/sidebar/saved-doc-tab/index.tsx @@ -156,8 +156,8 @@ export default function SavedDocTab() { {dialog}
-
-

Queries

+
+

Queries

@@ -166,7 +166,7 @@ export default function SavedDocTab() { buttonVariants({ size: "icon", }), - "rounded-full h-8 w-8" + "rounded-full h-8 w-8 bg-neutral-800 dark:bg-neutral-200" )} > diff --git a/src/components/gui/sortable-tab.tsx b/src/components/gui/sortable-tab.tsx index f1444e6..ef79342 100644 --- a/src/components/gui/sortable-tab.tsx +++ b/src/components/gui/sortable-tab.tsx @@ -41,13 +41,12 @@ export const WindowTabItemButton = forwardRef< return ( ); }); diff --git a/src/components/gui/sql-editor/use-editor-theme.tsx b/src/components/gui/sql-editor/use-editor-theme.tsx index 0ca394e..340b100 100644 --- a/src/components/gui/sql-editor/use-editor-theme.tsx +++ b/src/components/gui/sql-editor/use-editor-theme.tsx @@ -4,7 +4,7 @@ import { createTheme } from "@uiw/codemirror-themes"; import { useMemo } from "react"; export default function useCodeEditorTheme({ - fontSize = 1, + fontSize = 0.875, }: { fontSize?: number; }) { diff --git a/src/components/gui/tabs/query-tab.tsx b/src/components/gui/tabs/query-tab.tsx index 2a8cf3a..437dc80 100644 --- a/src/components/gui/tabs/query-tab.tsx +++ b/src/components/gui/tabs/query-tab.tsx @@ -3,7 +3,6 @@ import { useCallback, useMemo, useRef, useState } from "react"; import { LucideGrid, LucideMessageSquareWarning, - LucidePencilRuler, LucidePlay, } from "lucide-react"; import SqlEditor from "@/components/gui/sql-editor"; @@ -69,7 +68,7 @@ export default function QueryWindow({ const [code, setCode] = useState(initialCode ?? ""); const editorRef = useRef(null); - const [fontSize, setFontSize] = useState(1); + const [fontSize, setFontSize] = useState(0.875); const [lineNumber, setLineNumber] = useState(0); const [columnNumber, setColumnNumber] = useState(0); @@ -217,12 +216,12 @@ export default function QueryWindow({
-
+
{namespaceName} /
- +  {name} setName(e.currentTarget.value)} /> @@ -288,7 +287,7 @@ export default function QueryWindow({
-
+
- @@ -340,7 +343,7 @@ export default function QueryWindow({
- + {windowTab} diff --git a/src/components/gui/tabs/table-data-tab.tsx b/src/components/gui/tabs/table-data-tab.tsx index a625fc0..909a118 100644 --- a/src/components/gui/tabs/table-data-tab.tsx +++ b/src/components/gui/tabs/table-data-tab.tsx @@ -209,7 +209,7 @@ export default function TableDataWindow({ )} -
+
-
+
@@ -332,7 +332,7 @@ export default function TableDataWindow({ } }} style={{ width: 50 }} - className="p-1 pl-2 pr-2 bg-gray-100 dark:bg-gray-800 rounded text-xs h-full" + className="p-1 pl-2 pr-2 bg-neutral-200 dark:bg-neutral-800 rounded text-xs h-full" alt="Offset" /> @@ -350,7 +350,6 @@ export default function TableDataWindow({ /> -
{loading && } diff --git a/src/components/gui/windows-tab.tsx b/src/components/gui/windows-tab.tsx index 7061ec3..a98a17d 100644 --- a/src/components/gui/windows-tab.tsx +++ b/src/components/gui/windows-tab.tsx @@ -147,8 +147,8 @@ export default function WindowTabs({ modifiers={[restrictToHorizontalAxis]} >
-
-
+
+
tab.key)} strategy={horizontalListSortingStrategy} @@ -185,10 +185,10 @@ export default function WindowTabs({ {menu && ( -
+
-
+
New
@@ -208,7 +208,7 @@ export default function WindowTabs({
)} -
+
diff --git a/src/components/listview/index.tsx b/src/components/listview/index.tsx index 39d3d67..0a0f9f2 100644 --- a/src/components/listview/index.tsx +++ b/src/components/listview/index.tsx @@ -189,10 +189,10 @@ function renderList(props: ListViewRendererProps): React.ReactElement { >
& { withHandle?: boolean; + orientation?: "vertical" | "horizontal"; }) => ( {withHandle && ( -
- +
+
)} diff --git a/src/components/ui/tooltip.tsx b/src/components/ui/tooltip.tsx index 6fdf76a..0dee3e1 100644 --- a/src/components/ui/tooltip.tsx +++ b/src/components/ui/tooltip.tsx @@ -19,7 +19,7 @@ const TooltipContent = React.forwardRef< ref={ref} sideOffset={sideOffset} className={cn( - "z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", + "z-50 overflow-hidden rounded-md shadow bg-white dark:bg-neutral-800 text-black dark:text-neutral-200 px-3 py-1.5 text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className )} {...props} diff --git a/src/messages/open-tab.tsx b/src/messages/open-tab.tsx index f308253..ae17d6b 100644 --- a/src/messages/open-tab.tsx +++ b/src/messages/open-tab.tsx @@ -1,18 +1,14 @@ import type { WindowTabItemProps } from "@/components/gui/windows-tab"; import { MessageChannelName, TAB_PREFIX_SAVED_QUERY } from "../const"; import type { Dispatch, SetStateAction } from "react"; -import { - LucideTable, - LucideTableProperties, - LucideUser, - LucideCog, -} from "lucide-react"; +import { LucideTableProperties, LucideUser, LucideCog } from "lucide-react"; import QueryWindow from "@/components/gui/tabs/query-tab"; import SchemaEditorTab from "@/components/gui/tabs/schema-editor-tab"; import TableDataWindow from "@/components/gui/tabs/table-data-tab"; import UsersTab from "@/components/gui/tabs/users-tabs"; import TriggerTab from "@/components/gui/tabs/trigger-tab"; import { Binoculars } from "@phosphor-icons/react/dist/ssr"; +import { Table } from "@phosphor-icons/react"; interface OpenTableTab { type: "table"; @@ -83,7 +79,7 @@ function generateKeyFromTab(tab: OpenTabsProps) { function generateIconFromTab(tab: OpenTabsProps) { if (tab.type === "query") return Binoculars; - if (tab.type === "table") return LucideTable; + if (tab.type === "table") return Table; if (tab.type === "schema") return LucideTableProperties; if (tab.type === "user") return LucideUser; diff --git a/tailwind.config.ts b/tailwind.config.ts index aa06343..ec8c73d 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -1,4 +1,5 @@ import type { Config } from "tailwindcss"; +import defaultTheme from "tailwindcss/defaultTheme"; const config: Config = { darkMode: ["class"], @@ -91,6 +92,10 @@ const config: Config = { shake: "shake 0.82s cubic-bezier(.36,.07,.19,.97) both", }, }, + fontFamily: { + ...defaultTheme.fontFamily, + sans: ['Inter', 'Helvetica', ...defaultTheme.fontFamily.sans], + }, }, plugins: [require("tailwindcss-animate")], };