Files
artcraft/app/modules/SidePanel/SidePanel.tsx
T
BFlat 3c28b375ef many small changes (#298)
changes from trello board:
- AI stylize in side tab primary colored + icon change to draw attention
- AI stylize tab subtext "This helps you test and re-test your scene"
- AI stylize tab prompt textarea row reduction to fit as much content as
possible without going under the fold on smaller screens
- Logout button changed to secondary color from primary so it's not
attracting.
- Git SHA in help panel text changes
- fixes to topbar stylings and spacing
2024-05-02 11:06:50 -04:00

40 lines
1003 B
TypeScript

import {
dndSidePanelWidth,
sidePanelVisible,
sidePanelWidth,
} from "~/pages/PageEnigma/store";
import { SidePanelTabs } from "~/pages/PageEnigma/comps/SidePanelTabs";
import { SidePanelMenu } from "~/pages/PageEnigma/comps/SidePanelTabs/SidePanelMenu";
import { useSignals } from "@preact/signals-react/runtime";
export const SidePanel = () => {
useSignals();
const displayWidth =
dndSidePanelWidth.value > -1
? dndSidePanelWidth.value
: sidePanelWidth.value;
return (
<>
<div
className={[
"fixed",
"border-l border-l-ui-panel-border bg-ui-panel",
"flex",
"transition-all duration-300 ease-in-out",
].join(" ")}
style={{
top: 64,
right: 84,
width: sidePanelVisible.value ? displayWidth : 0,
}}>
<div className="relative block h-full w-full bg-ui-panel">
<SidePanelTabs />
</div>
</div>
<SidePanelMenu />
</>
);
};