ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
feat(sidebar): move quick-create to top as extended Create button
Juan Denis5594cc9300b4
diff --git a/frontend/src/components/QuickCreate.jsx b/frontend/src/components/QuickCreate.jsxindex d0fc4880..fc954414 100644--- a/frontend/src/components/QuickCreate.jsx+++ b/frontend/src/components/QuickCreate.jsx@@ -25,21 +25,30 @@ const CREATE_ITEMS = [{ kind: 'project', label: 'Project', icon: FolderKanban, path: '/projects?focus=create:project' },];-export function QuickCreate({ className }) {+export function QuickCreate({ className, variant = 'icon' }) {const navigate = useNavigate();+ // 'icon' — compact square button (mobile top bar). 'sidebar' — extended+ // "Create" pill pinned to the top of the sidebar (Gmail "Compose" pattern);+ // its menu opens downward since the trigger is no longer in the footer.+ const extended = variant === 'sidebar';return (<DropdownMenu><DropdownMenuTrigger asChild><buttontype="button"- className={cn('quick-create', className)}+ className={cn('quick-create', extended && 'quick-create--extended', className)}title="Create new…"aria-label="Create new"><Plus size={16} />+ {extended && <span className="quick-create__label">Create</span>}</button></DropdownMenuTrigger>- <DropdownMenuContent side="top" align="end" sideOffset={8}>+ <DropdownMenuContent+ side={extended ? 'bottom' : 'top'}+ align={extended ? 'start' : 'end'}+ sideOffset={8}+ >{CREATE_ITEMS.map((item) => (<DropdownMenuItem key={item.kind} onSelect={() => navigate(item.path)}><item.icon size={14} aria-hidden="true" />diff --git a/frontend/src/components/Sidebar.jsx b/frontend/src/components/Sidebar.jsxindex 313fb126..38318f4f 100644--- a/frontend/src/components/Sidebar.jsx+++ b/frontend/src/components/Sidebar.jsx@@ -352,6 +352,8 @@ const Sidebar = ({ mobileOpen = false, isMobile = false, onMobileClose = () => {</div>)}+ <QuickCreate variant="sidebar" />+<WorkspaceSwitcher /><div className="nav-scroll">@@ -551,7 +553,6 @@ const Sidebar = ({ mobileOpen = false, isMobile = false, onMobileClose = () => {</span><ChevronUp size={14} className={`user-menu-arrow ${menuOpen ? 'open' : ''}`} aria-hidden="true" /></button>- <QuickCreate /><NotificationBell /></div></div>diff --git a/frontend/src/styles/components/_notification-center.scss b/frontend/src/styles/components/_notification-center.scssindex 6b1a8205..29ec862b 100644--- a/frontend/src/styles/components/_notification-center.scss+++ b/frontend/src/styles/components/_notification-center.scss@@ -226,8 +226,8 @@}}-// Global quick-create ("+") — matches the notification bell's chrome so the-// sidebar footer / mobile top bar read as one control strip.+// Global quick-create ("+") base button — compact square used in the mobile+// top bar. The sidebar uses the extended variant (see layout/_sidebar.scss)..quick-create {display: inline-flex;align-items: center;@@ -246,13 +246,6 @@color: $text-primary;border-color: $border-default;}-- .sidebar-footer__row & {- width: 38px;- height: auto;- min-height: 34px;- align-self: stretch;- }}// Favorite pin on detail pages — quiet ghost star, amber when pinned.diff --git a/frontend/src/styles/layout/_sidebar.scss b/frontend/src/styles/layout/_sidebar.scssindex d0ddf699..2d1d56fe 100644--- a/frontend/src/styles/layout/_sidebar.scss+++ b/frontend/src/styles/layout/_sidebar.scss@@ -265,6 +265,44 @@text-overflow: ellipsis;}+// Quick-create — prominent "new anything" entry point pinned to the top of the+// sidebar (Gmail "Compose" / Material extended-FAB pattern) instead of crowding+// the footer strip next to the notification bell. Doubled class beats the base+// `.quick-create` rules, which live in a later-imported stylesheet.+.quick-create.quick-create--extended {+ width: 100%;+ height: 38px;+ margin: 0 0 0.75rem;+ padding: 0 12px;+ gap: 8px;+ justify-content: flex-start;+ border: none;+ border-radius: 10px;+ background: linear-gradient(160deg, var(--accent-bright), var(--accent));+ box-shadow: 0 4px 14px -2px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);+ color: #fff;+ font-size: 0.85rem;+ font-weight: $font-weight-medium;+ flex-shrink: 0;+ transition: filter 0.15s, transform 0.15s;++ svg {+ stroke: #fff;+ flex-shrink: 0;+ }++ &:hover {+ background: linear-gradient(160deg, var(--accent-bright), var(--accent));+ border-color: transparent;+ color: #fff;+ filter: brightness(1.1);+ }++ &:active {+ transform: translateY(1px);+ }+}+// Scrollable Navigation Container// Active-workspace selector (#33) — sits between the brand and the nav.// Uses the Radix Select UI component so the dropdown is fully theme-aware.@@ -749,6 +787,20 @@gap: 0;}+ // Quick-create collapses to a circular mini-FAB.+ .quick-create.quick-create--extended {+ width: 36px;+ height: 36px;+ padding: 0;+ margin: 0 auto 0.75rem;+ justify-content: center;+ border-radius: 50%;++ .quick-create__label {+ display: none;+ }+ }+.brand-text,.brand-star,.nav-category,@@ -813,6 +865,20 @@max-width: 170px;}+ // Quick-create shrinks to a compact accent icon button in the bar.+ .quick-create.quick-create--extended {+ width: 34px;+ height: 34px;+ padding: 0;+ margin: 0;+ justify-content: center;+ border-radius: 9px;++ .quick-create__label {+ display: none;+ }+ }+// Nav fills the middle of the bar and scrolls horizontally if it runs long..nav-scroll {flex: 1;