From 356158e42c79a29535be560acb8a6ac9a7faee99 Mon Sep 17 00:00:00 2001 From: faye Date: Mon, 22 May 2023 18:45:25 +0800 Subject: [PATCH 1/6] add:light and dark mode --- .../src/App/BottomBar/index.tsx | 2 +- .../src/App/Sidebar/Resizer.tsx | 2 +- .../src/App/Sidebar/Section.tsx | 2 +- .../src/App/Sidebar/Tab/Bottom.tsx | 5 ++- .../src/App/Sidebar/Tab/Button.tsx | 2 +- .../stablestudio-ui/src/App/Sidebar/index.tsx | 2 +- .../src/App/TopBar/Right/index.tsx | 20 +++++++++ packages/stablestudio-ui/src/App/index.tsx | 4 +- .../src/Editor/Dream/Results.tsx | 2 +- .../src/Editor/Entity/Entities/Sidebar.tsx | 4 +- .../src/Editor/Export/Everything.tsx | 2 +- .../src/Generation/Image/Controls/index.tsx | 8 ++-- .../Generation/Image/Images/Delete/Button.tsx | 3 +- .../Generation/Image/Input/Image/Sidebar.tsx | 6 +-- .../src/Generation/Image/Prompt/index.tsx | 2 +- .../Generation/Image/SpecialEffects/index.tsx | 2 +- .../src/Generation/Image/index.tsx | 2 +- .../stablestudio-ui/src/Generation/index.tsx | 2 +- .../stablestudio-ui/src/Settings/Panel.tsx | 2 +- .../stablestudio-ui/src/Settings/index.tsx | 2 +- .../src/Shortcut/Key/index.tsx | 2 +- .../src/Shortcut/Palette/index.tsx | 6 +-- .../stablestudio-ui/src/Theme/Badge/index.tsx | 2 +- .../src/Theme/Button/index.tsx | 9 ++-- .../src/Theme/Common/index.tsx | 9 +++- .../src/Theme/Divider/index.tsx | 4 +- .../src/Theme/Dropdown/index.tsx | 6 +-- .../stablestudio-ui/src/Theme/Icon/SVGs.tsx | 45 +++++++++++++++++++ .../stablestudio-ui/src/Theme/Icon/index.tsx | 6 +++ .../stablestudio-ui/src/Theme/Input/index.tsx | 4 +- packages/stablestudio-ui/src/Theme/Label.tsx | 2 +- .../src/Theme/Loading/Spinner.tsx | 2 +- .../stablestudio-ui/src/Theme/Logo/Next.tsx | 3 +- .../stablestudio-ui/src/Theme/Modal/Panel.tsx | 2 +- .../stablestudio-ui/src/Theme/Modal/Title.tsx | 7 ++- .../src/Theme/Modal/TopBar.tsx | 2 +- .../stablestudio-ui/src/Theme/Modal/index.tsx | 2 +- .../src/Theme/Popout/index.tsx | 10 ++--- packages/stablestudio-ui/src/Theme/Slider.tsx | 2 +- .../stablestudio-ui/src/Theme/Snackbar.tsx | 2 +- .../src/Theme/Tooltip/index.tsx | 6 +-- 41 files changed, 151 insertions(+), 58 deletions(-) diff --git a/packages/stablestudio-ui/src/App/BottomBar/index.tsx b/packages/stablestudio-ui/src/App/BottomBar/index.tsx index 50eee424..15a183d9 100644 --- a/packages/stablestudio-ui/src/App/BottomBar/index.tsx +++ b/packages/stablestudio-ui/src/App/BottomBar/index.tsx @@ -27,7 +27,7 @@ export function BottomBar() { setOpen(!open)} > diff --git a/packages/stablestudio-ui/src/App/Sidebar/Section.tsx b/packages/stablestudio-ui/src/App/Sidebar/Section.tsx index 26134945..95ed221f 100644 --- a/packages/stablestudio-ui/src/App/Sidebar/Section.tsx +++ b/packages/stablestudio-ui/src/App/Sidebar/Section.tsx @@ -41,7 +41,7 @@ export function Section(props: Section.Props) { return (
{children}
diff --git a/packages/stablestudio-ui/src/App/Sidebar/Tab/Button.tsx b/packages/stablestudio-ui/src/App/Sidebar/Tab/Button.tsx index 9f21dd18..cb8163cc 100644 --- a/packages/stablestudio-ui/src/App/Sidebar/Tab/Button.tsx +++ b/packages/stablestudio-ui/src/App/Sidebar/Tab/Button.tsx @@ -23,7 +23,7 @@ export function Buttons({ position }: App.Sidebar.Props) { return useMemo(() => { if (!tabs[0] || noButtons) return null; return ( -
+
{tabs.map((tab) => { if (tab.button === false) return null; diff --git a/packages/stablestudio-ui/src/App/Sidebar/index.tsx b/packages/stablestudio-ui/src/App/Sidebar/index.tsx index bcacee90..2cc7e063 100644 --- a/packages/stablestudio-ui/src/App/Sidebar/index.tsx +++ b/packages/stablestudio-ui/src/App/Sidebar/index.tsx @@ -37,7 +37,7 @@ export function Sidebar({ position }: Sidebar.Props) {
diff --git a/packages/stablestudio-ui/src/App/TopBar/Right/index.tsx b/packages/stablestudio-ui/src/App/TopBar/Right/index.tsx index 3a615dbf..b8586a78 100644 --- a/packages/stablestudio-ui/src/App/TopBar/Right/index.tsx +++ b/packages/stablestudio-ui/src/App/TopBar/Right/index.tsx @@ -5,6 +5,19 @@ import { Theme } from "~/Theme"; export const Right = () => { const { setIsOpen } = Shortcut.Palette.use(); const isMobileDevice = Theme.useIsMobileDevice(); + const [dark, setDark] = useState(false); + + useEffect(() => { + const root = document.querySelectorAll("#modal-root, #app"); + + if (root) { + const elementsArray = [...root]; + elementsArray.forEach((element) => { + if (dark) return element.classList.add("dark"); + element.classList.remove("dark"); + }); + } + }, [dark]); return (
<> @@ -22,6 +35,13 @@ export const Right = () => { )} + + setDark(!dark)} + className="aspect-square h-[30px] w-[30px]" + icon={dark ? Theme.Icon.Dark : Theme.Icon.Light} + /> + ( -
-
+
+
diff --git a/packages/stablestudio-ui/src/Editor/Dream/Results.tsx b/packages/stablestudio-ui/src/Editor/Dream/Results.tsx index f552d4ad..02bc353c 100644 --- a/packages/stablestudio-ui/src/Editor/Dream/Results.tsx +++ b/packages/stablestudio-ui/src/Editor/Dream/Results.tsx @@ -31,7 +31,7 @@ function Choice({ /> @@ -171,7 +171,7 @@ const Preview = ({ entity }: { entity: Editor.Entity }) => { )}
{!src && ( - + )} {entity && entity.type === "dream" && }
diff --git a/packages/stablestudio-ui/src/Editor/Export/Everything.tsx b/packages/stablestudio-ui/src/Editor/Export/Everything.tsx index 907062c9..b68dfae4 100644 --- a/packages/stablestudio-ui/src/Editor/Export/Everything.tsx +++ b/packages/stablestudio-ui/src/Editor/Export/Everything.tsx @@ -105,7 +105,7 @@ export namespace Everything { exit={{ opacity: 0 }} transition={{ duration: 0.05 }} > -
+

No images in view

diff --git a/packages/stablestudio-ui/src/Generation/Image/Controls/index.tsx b/packages/stablestudio-ui/src/Generation/Image/Controls/index.tsx index 0c511c23..643ef71b 100644 --- a/packages/stablestudio-ui/src/Generation/Image/Controls/index.tsx +++ b/packages/stablestudio-ui/src/Generation/Image/Controls/index.tsx @@ -27,11 +27,12 @@ export function Controls({ image }: { image: Generation.Image }) { id={input.id} icon={Theme.Icon.Variation} onIdleClick={createVariations} + color="white" noBrand /> )} transparent - className="mr-auto -ml-1" + className="-ml-1 mr-auto" /> ), [input, createVariations] @@ -43,7 +44,7 @@ export function Controls({ image }: { image: Generation.Image }) { icon={Theme.Icon.Edit} name="Edit image" onClick={sendToEditor} - color="zinc" + color="white" transparent /> ), @@ -58,7 +59,7 @@ export function Controls({ image }: { image: Generation.Image }) { disabled={isInitialImage} className={classes(isInitialImage && "opacity-50")} onClick={() => setInitialImage(image)} - color="zinc" + color="white" transparent /> ), @@ -84,6 +85,7 @@ export function Controls({ image }: { image: Generation.Image }) { download()} transparent /> diff --git a/packages/stablestudio-ui/src/Generation/Image/Images/Delete/Button.tsx b/packages/stablestudio-ui/src/Generation/Image/Images/Delete/Button.tsx index 92e7ebc8..1c53ed89 100644 --- a/packages/stablestudio-ui/src/Generation/Image/Images/Delete/Button.tsx +++ b/packages/stablestudio-ui/src/Generation/Image/Images/Delete/Button.tsx @@ -20,7 +20,7 @@ export function Button({ return useMemo( () => !isEnabled ? null : deleteConfirming ? ( -
+
setDeleteConfirming(true)} transparent={!outline} outline={outline} + color={deleteTooltip ? "zinc" : "white"} noBg={outline} /> ), diff --git a/packages/stablestudio-ui/src/Generation/Image/Input/Image/Sidebar.tsx b/packages/stablestudio-ui/src/Generation/Image/Input/Image/Sidebar.tsx index 25dea6b3..fdba613d 100644 --- a/packages/stablestudio-ui/src/Generation/Image/Input/Image/Sidebar.tsx +++ b/packages/stablestudio-ui/src/Generation/Image/Input/Image/Sidebar.tsx @@ -75,7 +75,7 @@ export namespace Sidebar { } >
-
+
{input.init && !imageHovering ? ( <>
@@ -145,7 +145,7 @@ export namespace Sidebar { ) : (
diff --git a/packages/stablestudio-ui/src/Generation/Image/SpecialEffects/index.tsx b/packages/stablestudio-ui/src/Generation/Image/SpecialEffects/index.tsx index 89a0d6a3..810cf70c 100644 --- a/packages/stablestudio-ui/src/Generation/Image/SpecialEffects/index.tsx +++ b/packages/stablestudio-ui/src/Generation/Image/SpecialEffects/index.tsx @@ -26,7 +26,7 @@ export function SpecialEffects({ return (
diff --git a/packages/stablestudio-ui/src/Generation/index.tsx b/packages/stablestudio-ui/src/Generation/index.tsx index 7869c337..f64884aa 100644 --- a/packages/stablestudio-ui/src/Generation/index.tsx +++ b/packages/stablestudio-ui/src/Generation/index.tsx @@ -26,7 +26,7 @@ export function Generation() { -
+
diff --git a/packages/stablestudio-ui/src/Settings/Panel.tsx b/packages/stablestudio-ui/src/Settings/Panel.tsx index 324038fd..e2cc03d4 100644 --- a/packages/stablestudio-ui/src/Settings/Panel.tsx +++ b/packages/stablestudio-ui/src/Settings/Panel.tsx @@ -2,7 +2,7 @@ export function Panel({ className, children }: StyleableWithChildren) { return (
diff --git a/packages/stablestudio-ui/src/Settings/index.tsx b/packages/stablestudio-ui/src/Settings/index.tsx index 60d938d2..90d33ec6 100644 --- a/packages/stablestudio-ui/src/Settings/index.tsx +++ b/packages/stablestudio-ui/src/Settings/index.tsx @@ -59,7 +59,7 @@ export function Settings() { return ( <> -
+
{!isMissingRequiredSetting && ( diff --git a/packages/stablestudio-ui/src/Shortcut/Key/index.tsx b/packages/stablestudio-ui/src/Shortcut/Key/index.tsx index a2934e96..68269413 100644 --- a/packages/stablestudio-ui/src/Shortcut/Key/index.tsx +++ b/packages/stablestudio-ui/src/Shortcut/Key/index.tsx @@ -92,7 +92,7 @@ export function Key({ keyType }: { keyType: Key }) { return (
-
+
+
Nothing found
) diff --git a/packages/stablestudio-ui/src/Theme/Badge/index.tsx b/packages/stablestudio-ui/src/Theme/Badge/index.tsx index 814a23bd..c9e1ce52 100644 --- a/packages/stablestudio-ui/src/Theme/Badge/index.tsx +++ b/packages/stablestudio-ui/src/Theme/Badge/index.tsx @@ -13,7 +13,7 @@ export function Badge({ color === "brand" && "bg-brand-800", color === "zinc" && (variant === "outline" - ? "border border-zinc-700 bg-none" + ? "border border-black/20 dark:border-zinc-700 bg-none" : "bg-zinc-700") ), [variant, color] diff --git a/packages/stablestudio-ui/src/Theme/Button/index.tsx b/packages/stablestudio-ui/src/Theme/Button/index.tsx index 36aefb9a..4fba4fc6 100644 --- a/packages/stablestudio-ui/src/Theme/Button/index.tsx +++ b/packages/stablestudio-ui/src/Theme/Button/index.tsx @@ -22,7 +22,7 @@ export function Button(props: Button.Props) { } onDoubleClick={props.onDoubleClick as never} className={classes( - "group relative flex h-fit select-none flex-row items-center justify-center gap-1 whitespace-nowrap rounded align-middle font-light shadow-md duration-150", + "group relative flex h-fit select-none flex-row items-center justify-center gap-1 whitespace-nowrap rounded align-middle font-light duration-150", sizing, colors, states, @@ -131,10 +131,13 @@ export namespace Button { yellow: "bg-yellow-600 hover:bg-yellow-700 active:bg-yellow-800", - zinc: "shadow-black/5 bg-zinc-200 dark:shadow-none dark:text-white/80 dark:hover:text-white dark:bg-zinc-800 dark:hover:bg-zinc-700 border-zinc-800 dark:border-zinc-700", + zinc: "shadow-black/5 bg-zinc-200 hover:bg-zinc-300 dark:shadow-none dark:text-white/80 dark:hover:text-white dark:bg-zinc-800 dark:hover:bg-zinc-700 border-black/20 dark:border-zinc-700", + + white: + "shadow-black/5 bg-zinc-200 hover:bg-zinc-300 dark:shadow-none text-white/80 dark:hover:text-white dark:bg-zinc-800 dark:hover:bg-zinc-700 border-black/20 dark:border-zinc-700", darkerZinc: - "bg-zinc-900 border border-zinc-700 hover:border-zinc-300 duration-100 transition text-white", + "bg-zinc-900 border border-black/20 dark:border-zinc-700 hover:border-zinc-300 duration-100 transition text-white", outline: "shadow-none dark:text-white text-black border border-transparent hover:border-zinc-700 focus:border-brand-500 active:bg-brand-500 active:text-white active:border-brand-500", diff --git a/packages/stablestudio-ui/src/Theme/Common/index.tsx b/packages/stablestudio-ui/src/Theme/Common/index.tsx index 1ee29332..81e82016 100644 --- a/packages/stablestudio-ui/src/Theme/Common/index.tsx +++ b/packages/stablestudio-ui/src/Theme/Common/index.tsx @@ -4,7 +4,14 @@ export namespace Common { export const preset = (): Size => "md"; } - export type Color = "brand" | "indigo" | "red" | "green" | "yellow" | "zinc"; + export type Color = + | "brand" + | "indigo" + | "red" + | "green" + | "yellow" + | "zinc" + | "white"; export namespace Color { export const preset = (): Color => "zinc"; } diff --git a/packages/stablestudio-ui/src/Theme/Divider/index.tsx b/packages/stablestudio-ui/src/Theme/Divider/index.tsx index 6332871e..c598c2c1 100644 --- a/packages/stablestudio-ui/src/Theme/Divider/index.tsx +++ b/packages/stablestudio-ui/src/Theme/Divider/index.tsx @@ -7,7 +7,7 @@ export function Divider({ const line = (
{line} {children && ( -
+
{children}
)} diff --git a/packages/stablestudio-ui/src/Theme/Dropdown/index.tsx b/packages/stablestudio-ui/src/Theme/Dropdown/index.tsx index a209d5e2..0533c949 100644 --- a/packages/stablestudio-ui/src/Theme/Dropdown/index.tsx +++ b/packages/stablestudio-ui/src/Theme/Dropdown/index.tsx @@ -77,14 +77,14 @@ export function Dropdown({ transparent ? "border-transparent bg-transparent" : open - ? "border-transparent bg-zinc-700/50" + ? "border-transparent bg-white dark:bg-zinc-700/50" : "border-zinc-800 group-hover:border-zinc-700" )} /> -
+
{open ? ( diff --git a/packages/stablestudio-ui/src/Theme/Icon/SVGs.tsx b/packages/stablestudio-ui/src/Theme/Icon/SVGs.tsx index cbaa5a96..c53cba15 100644 --- a/packages/stablestudio-ui/src/Theme/Icon/SVGs.tsx +++ b/packages/stablestudio-ui/src/Theme/Icon/SVGs.tsx @@ -425,6 +425,51 @@ export function Upscale(props: Props) { )); } +export function Light(props: Props) { + return defaults(props)(({ width, height, color, ...props }) => ( + + + + + )); +} + +export function Dark(props: Props) { + return defaults(props)(({ width, height, color, ...props }) => ( + + + + )); +} + const defaults = (props: Props) => (render: (props: Props) => JSX.Element): JSX.Element => diff --git a/packages/stablestudio-ui/src/Theme/Icon/index.tsx b/packages/stablestudio-ui/src/Theme/Icon/index.tsx index 1acce91a..86f69cf7 100644 --- a/packages/stablestudio-ui/src/Theme/Icon/index.tsx +++ b/packages/stablestudio-ui/src/Theme/Icon/index.tsx @@ -84,6 +84,8 @@ import { Twitter, Upscale, Variation, + Light, + Dark } from "./SVGs"; export declare namespace Icon { @@ -169,6 +171,8 @@ export declare namespace Icon { Upscale, Keyboard, ChevronsLeftRight, + Light, + Dark, }; } @@ -262,6 +266,8 @@ export namespace Icon { Icon.Upscale = makeComponent(Upscale); Icon.Keyboard = makeComponent(Keyboard); Icon.ChevronsLeftRight = makeComponent(ChevronsLeftRight); + Icon.Light = makeComponent(Light); + Icon.Dark = makeComponent(Dark); export function Invisible(props: Props) { return ( diff --git a/packages/stablestudio-ui/src/Theme/Input/index.tsx b/packages/stablestudio-ui/src/Theme/Input/index.tsx index 650c71c6..ad884da8 100644 --- a/packages/stablestudio-ui/src/Theme/Input/index.tsx +++ b/packages/stablestudio-ui/src/Theme/Input/index.tsx @@ -156,7 +156,7 @@ function SingleInput({ const render = (icon: typeof iconLeft, position: "left" | "right") => { const className = classes( "opacity-60 h-5 w-5 text-black dark:text-white", - position === "left" && "mr-1 -ml-1", + position === "left" && "mr-1 -ml-1 stroke-black dark:stroke-white", position === "right" && "ml-1 -mr-1" ); @@ -188,7 +188,7 @@ function SingleInput({ diff --git a/packages/stablestudio-ui/src/Theme/Loading/Spinner.tsx b/packages/stablestudio-ui/src/Theme/Loading/Spinner.tsx index 917367a9..e0704efd 100644 --- a/packages/stablestudio-ui/src/Theme/Loading/Spinner.tsx +++ b/packages/stablestudio-ui/src/Theme/Loading/Spinner.tsx @@ -5,7 +5,7 @@ export function Spinner({ className }: Styleable) { height="38" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" - stroke="#fff" + className={className} > diff --git a/packages/stablestudio-ui/src/Theme/Logo/Next.tsx b/packages/stablestudio-ui/src/Theme/Logo/Next.tsx index cb80ca29..8bf406ec 100644 --- a/packages/stablestudio-ui/src/Theme/Logo/Next.tsx +++ b/packages/stablestudio-ui/src/Theme/Logo/Next.tsx @@ -7,7 +7,8 @@ export function Next() {
StableStudio - by stability.ai + by + stability.ai
diff --git a/packages/stablestudio-ui/src/Theme/Modal/Panel.tsx b/packages/stablestudio-ui/src/Theme/Modal/Panel.tsx index 14f65dea..d0cfba2b 100644 --- a/packages/stablestudio-ui/src/Theme/Modal/Panel.tsx +++ b/packages/stablestudio-ui/src/Theme/Modal/Panel.tsx @@ -2,7 +2,7 @@ export function Panel({ className, children }: StyleableWithChildren) { return (
diff --git a/packages/stablestudio-ui/src/Theme/Modal/Title.tsx b/packages/stablestudio-ui/src/Theme/Modal/Title.tsx index 5b2676ca..df4f0132 100644 --- a/packages/stablestudio-ui/src/Theme/Modal/Title.tsx +++ b/packages/stablestudio-ui/src/Theme/Modal/Title.tsx @@ -1,6 +1,11 @@ export function Title({ className, children }: StyleableWithChildren) { return ( -

+

{children}

); diff --git a/packages/stablestudio-ui/src/Theme/Modal/TopBar.tsx b/packages/stablestudio-ui/src/Theme/Modal/TopBar.tsx index a7c01561..1fda4a4d 100644 --- a/packages/stablestudio-ui/src/Theme/Modal/TopBar.tsx +++ b/packages/stablestudio-ui/src/Theme/Modal/TopBar.tsx @@ -10,7 +10,7 @@ export function TopBar({ return (
diff --git a/packages/stablestudio-ui/src/Theme/Modal/index.tsx b/packages/stablestudio-ui/src/Theme/Modal/index.tsx index 57f118a2..3155c568 100644 --- a/packages/stablestudio-ui/src/Theme/Modal/index.tsx +++ b/packages/stablestudio-ui/src/Theme/Modal/index.tsx @@ -98,7 +98,7 @@ function Open({ return ( setOpen(!open)} @@ -137,8 +137,8 @@ function Floating({ ); return ( -
-
+
+

{title}

{option.name} diff --git a/packages/stablestudio-ui/src/Theme/Slider.tsx b/packages/stablestudio-ui/src/Theme/Slider.tsx index a3076041..3e8a883f 100644 --- a/packages/stablestudio-ui/src/Theme/Slider.tsx +++ b/packages/stablestudio-ui/src/Theme/Slider.tsx @@ -128,7 +128,7 @@ export const Slider = ({ className={classes( "h-[2px] rounded-full", - state.index !== 0 && "opacity-muted-extra bg-white shadow-sm", + state.index !== 0 && "opacity-muted-extra dark:bg-white bg-black shadow-sm", state.index === 0 && classes( "shadow-md", diff --git a/packages/stablestudio-ui/src/Theme/Snackbar.tsx b/packages/stablestudio-ui/src/Theme/Snackbar.tsx index 2e00af3d..3a92ae15 100644 --- a/packages/stablestudio-ui/src/Theme/Snackbar.tsx +++ b/packages/stablestudio-ui/src/Theme/Snackbar.tsx @@ -36,7 +36,7 @@ const Snackbar = React.forwardRef< return (
diff --git a/packages/stablestudio-ui/src/Theme/Tooltip/index.tsx b/packages/stablestudio-ui/src/Theme/Tooltip/index.tsx index e477360d..f8ceebe0 100644 --- a/packages/stablestudio-ui/src/Theme/Tooltip/index.tsx +++ b/packages/stablestudio-ui/src/Theme/Tooltip/index.tsx @@ -140,10 +140,10 @@ export function Tooltip({ {showArrow && ( Date: Mon, 22 May 2023 06:59:11 -0400 Subject: [PATCH 2/6] change border-black/20 to border-zinc-300 --- packages/stablestudio-ui/src/App/Sidebar/Section.tsx | 2 +- packages/stablestudio-ui/src/App/Sidebar/Tab/Bottom.tsx | 2 +- packages/stablestudio-ui/src/App/Sidebar/Tab/Button.tsx | 2 +- packages/stablestudio-ui/src/App/Sidebar/index.tsx | 2 +- packages/stablestudio-ui/src/App/TopBar/index.tsx | 2 +- packages/stablestudio-ui/src/Editor/Export/Everything.tsx | 2 +- .../src/Generation/Image/Input/Image/Sidebar.tsx | 2 +- .../stablestudio-ui/src/Generation/Image/Prompt/index.tsx | 2 +- .../src/Generation/Image/SpecialEffects/index.tsx | 2 +- packages/stablestudio-ui/src/Settings/Panel.tsx | 2 +- packages/stablestudio-ui/src/Theme/Badge/index.tsx | 2 +- packages/stablestudio-ui/src/Theme/Button/index.tsx | 6 +++--- packages/stablestudio-ui/src/Theme/Modal/Panel.tsx | 2 +- packages/stablestudio-ui/src/Theme/Modal/TopBar.tsx | 2 +- packages/stablestudio-ui/src/Theme/Popout/index.tsx | 4 ++-- packages/stablestudio-ui/src/Theme/Snackbar.tsx | 2 +- packages/stablestudio-ui/src/Theme/Tooltip/index.tsx | 2 +- 17 files changed, 20 insertions(+), 20 deletions(-) diff --git a/packages/stablestudio-ui/src/App/Sidebar/Section.tsx b/packages/stablestudio-ui/src/App/Sidebar/Section.tsx index 95ed221f..76a0c27a 100644 --- a/packages/stablestudio-ui/src/App/Sidebar/Section.tsx +++ b/packages/stablestudio-ui/src/App/Sidebar/Section.tsx @@ -41,7 +41,7 @@ export function Section(props: Section.Props) { return (
diff --git a/packages/stablestudio-ui/src/App/Sidebar/Tab/Button.tsx b/packages/stablestudio-ui/src/App/Sidebar/Tab/Button.tsx index cb8163cc..62295c60 100644 --- a/packages/stablestudio-ui/src/App/Sidebar/Tab/Button.tsx +++ b/packages/stablestudio-ui/src/App/Sidebar/Tab/Button.tsx @@ -23,7 +23,7 @@ export function Buttons({ position }: App.Sidebar.Props) { return useMemo(() => { if (!tabs[0] || noButtons) return null; return ( -
+
{tabs.map((tab) => { if (tab.button === false) return null; diff --git a/packages/stablestudio-ui/src/App/Sidebar/index.tsx b/packages/stablestudio-ui/src/App/Sidebar/index.tsx index 2cc7e063..b35935c6 100644 --- a/packages/stablestudio-ui/src/App/Sidebar/index.tsx +++ b/packages/stablestudio-ui/src/App/Sidebar/index.tsx @@ -37,7 +37,7 @@ export function Sidebar({ position }: Sidebar.Props) {
diff --git a/packages/stablestudio-ui/src/App/TopBar/index.tsx b/packages/stablestudio-ui/src/App/TopBar/index.tsx index fb70587b..01af76d0 100644 --- a/packages/stablestudio-ui/src/App/TopBar/index.tsx +++ b/packages/stablestudio-ui/src/App/TopBar/index.tsx @@ -6,7 +6,7 @@ import { Right } from "./Right"; export function TopBar() { return ( -