diff --git a/src/components/Actions.jsx b/src/components/Actions.jsx index db0757e..52a6cae 100644 --- a/src/components/Actions.jsx +++ b/src/components/Actions.jsx @@ -344,7 +344,10 @@ export function Actions() { return ( -
+
0x diff --git a/src/components/Assembled.jsx b/src/components/Assembled.jsx index a71a5c5..57d32b0 100644 --- a/src/components/Assembled.jsx +++ b/src/components/Assembled.jsx @@ -8,6 +8,7 @@ import CopyComponent from './CopyComponent.jsx'; import {Tooltip} from '@kobalte/core/tooltip'; import {BsArrowBarLeft, BsArrowBarRight} from 'solid-icons/bs'; import styles from './Assembled.module.css'; +import {BiRegularDockLeft, BiRegularDockRight, BiSolidDockLeft, BiSolidDockRight} from "solid-icons/bi"; export function Assembled() { let [lines, setLines] = createSignal([]); @@ -24,7 +25,7 @@ export function Assembled() { }; onMount(() => { - setWidth(window.innerWidth * (window.innerWidth > 768 ? 0.3 : 0.8)); + setWidth(window.innerWidth * (window.innerWidth > 768 ? 0.3 : 1)); const handleResize = () => { const isMd = window.matchMedia("(min-width: 768px)").matches; setExpanded(isMd); @@ -33,8 +34,16 @@ export function Assembled() { // Initial check handleResize(); - // Listen for resize events - window.addEventListener("resize", handleResize); + const isMd = window.matchMedia("(min-width: 768px)").matches; + + if (isMd) { + // Listen for resize events + window.addEventListener("resize", handleResize); + } + + window.addEventListener("showRightPanel", () => { + setExpanded(true); + }); // Cleanup listener on component unmount return () => { @@ -68,11 +77,11 @@ export function Assembled() { return (

@@ -103,8 +112,8 @@ export function Assembled() {

- - {expanded() ? : } +
+ style={{height: "calc(100vh - 5.5rem)"}}>
diff --git a/src/components/Header.astro b/src/components/Header.astro index dbac911..0e7f5b2 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -2,6 +2,10 @@ import HandHoldingHeartIcon from '../icons/hand-holding-heart.svg?raw'; import LockIcon from '../icons/lock.svg?raw'; import MenuIcon from '../icons/menu.svg?raw'; +import RegularDockLeftIcon from '../icons/regular-dock-left.svg?raw'; +import SolidDockLeftIcon from '../icons/solid-dock-left.svg?raw'; +import RegularDockRightIcon from '../icons/regular-dock-right.svg?raw'; +import SolidDockRightIcon from '../icons/solid-dock-right.svg?raw'; import Logo from '../icons/logo.svg?raw'; import LogoWithBackground from '../icons/logo-with-green-background.svg?raw'; import FAQs from './FAQs.astro'; @@ -23,13 +27,13 @@ const user = session?.user; const isLoggedIn = !!user; const avatarUrl = user?.user_metadata?.avatar_url || '/default-avatar.png'; // Default avatar if none exists --- -
+
- : null} + {showActions ? ( +
+ + + {showActions ? + : null} + +
+ ) : null}
@@ -110,9 +126,9 @@ const avatarUrl = user?.user_metadata?.avatar_url || '/default-avatar.png'; // D
- @@ -120,20 +136,35 @@ const avatarUrl = user?.user_metadata?.avatar_url || '/default-avatar.png'; // D class="absolute right-0 mt-2 w-48 bg-secondary-background rounded-md shadow-lg overflow-hidden z-10"> + class="block w-full px-4 py-2 text-sm text-left text-active-foreground hover:bg-active-background"> Donate + + Documentation + + + Changelog + + + GitHub +
@@ -173,6 +204,22 @@ const avatarUrl = user?.user_metadata?.avatar_url || '/default-avatar.png'; // D animation: none; box-shadow: none; } + + .regular-icon { + display: block; + } + + .solid-icon { + display: none; + } + + .solid .solid-icon { + display: block + } + + .solid .regular-icon { + display: none; + } + + diff --git a/src/components/MemoryList.jsx b/src/components/MemoryList.jsx index af3fbcc..51ee2b0 100644 --- a/src/components/MemoryList.jsx +++ b/src/components/MemoryList.jsx @@ -171,7 +171,7 @@ export default function MemoryList({ threshold = 4 }) {

Memory

- + diff --git a/src/components/RightPanel.jsx b/src/components/RightPanel.jsx index fd0ad16..377cb60 100644 --- a/src/components/RightPanel.jsx +++ b/src/components/RightPanel.jsx @@ -10,6 +10,7 @@ import {Settings} from "./Settings"; import {KeyboardShortcuts} from "./KeyboardShortcuts"; import {Tooltip} from "@kobalte/core/tooltip"; import {Workspace} from "./Workspace.jsx"; +import {BiRegularDockLeft, BiSolidDockLeft} from "solid-icons/bi"; export function RightPanel() { const [activeTab, setActiveTab] = createSignal('cpu'); @@ -28,6 +29,10 @@ export function RightPanel() { // Listen for resize events window.addEventListener("resize", handleResize); + window.addEventListener("showLeftPanel", () => { + setExpanded(true); + }); + // Cleanup listener on component unmount return () => { window.removeEventListener("resize", handleResize); @@ -73,7 +78,16 @@ export function RightPanel() {
+ class="relative z-10 bg-page-background flex flex-col items-center h-sm:gap-4 gap-4 pt-2 md:pt-4 border-r-0 md:border-r border-r-main-border h-[calc(100dvh-4rem)] md:h-[calc(100vh-6.2rem)]"> + + {/*}*/} {/* isActive={isActive('workspace')}*/} @@ -115,9 +129,6 @@ export function RightPanel() { style={{ display: expanded() ? "block" : "none", }}> -
- {expanded() ? : } -
@@ -138,7 +149,7 @@ export function RightPanel() {
- {props.icon} + {props.icon} diff --git a/src/components/ThemeSwitcher.astro b/src/components/ThemeSwitcher.astro index a04e25c..cb871a1 100644 --- a/src/components/ThemeSwitcher.astro +++ b/src/components/ThemeSwitcher.astro @@ -35,7 +35,7 @@ import ComputerDesktopIcon from '../icons/computer-desktop.svg?raw'; >