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(services): add tab icons and pin Settings to the far right
Juan Denisa69d67afcb46
diff --git a/frontend/src/pages/ServiceDetail.jsx b/frontend/src/pages/ServiceDetail.jsxindex b342c7f1..5e753d79 100644--- a/frontend/src/pages/ServiceDetail.jsx+++ b/frontend/src/pages/ServiceDetail.jsx@@ -18,7 +18,7 @@ import CommandsTab from '../components/service-detail/CommandsTab';import GitConnectModal from '../components/service-detail/GitConnectModal';import OverviewTab from '../components/service-detail/OverviewTab';import EmptyState from '../components/EmptyState';-import { Layers, FileArchive, RotateCcw } from 'lucide-react';+import { Layers, FileArchive, RotateCcw, LayoutDashboard, History, ScrollText, Variable, Terminal, Activity, Package, Server, SquareTerminal, Settings } from 'lucide-react';import { Button } from '@/components/ui/button';import { Pill, ServiceTile, PageTopbar } from '@/components/ds';@@ -44,6 +44,20 @@ const TAB_LABELS = {settings: 'Settings',};+// Per-tab glyph for the detail tab strip (matches the WordPress detail page).+const TAB_ICONS = {+ overview: LayoutDashboard,+ events: History,+ logs: ScrollText,+ environment: Variable,+ shell: Terminal,+ metrics: Activity,+ packages: Package,+ gunicorn: Server,+ commands: SquareTerminal,+ settings: Settings,+};+const ServiceDetail = () => {const { id } = useParams();const navigate = useNavigate();@@ -477,17 +491,23 @@ const ServiceDetail = () => {</div>)}- {/* Tab Bar — shared underline-style strip (app-detail-tabs). */}+ {/* Tab Bar — shared underline-style strip (app-detail-tabs) with a+ glyph per tab; Settings is pinned to the far right (--end), exactly+ like the WordPress detail page. */}<div className="app-detail-tabs">- {availableTabs.map(tab => (- <button- key={tab}- className={`app-detail-tab ${activeTab === tab ? 'active' : ''}`}- onClick={() => setActiveTab(tab)}- >- {TAB_LABELS[tab] || tab}- </button>- ))}+ {availableTabs.map(tab => {+ const Icon = TAB_ICONS[tab];+ return (+ <button+ key={tab}+ className={`app-detail-tab ${activeTab === tab ? 'active' : ''} ${tab === 'settings' ? 'app-detail-tab--end' : ''}`}+ onClick={() => setActiveTab(tab)}+ >+ {Icon && <Icon size={14} />}+ {TAB_LABELS[tab] || tab}+ </button>+ );+ })}</div>{/* Tab Content */}diff --git a/frontend/src/styles/pages/_service-detail.scss b/frontend/src/styles/pages/_service-detail.scssindex 778c9cc1..8ed81d21 100644--- a/frontend/src/styles/pages/_service-detail.scss+++ b/frontend/src/styles/pages/_service-detail.scss@@ -345,9 +345,18 @@font-weight: $font-weight-medium;}- // Tab strip + content now reuse the shared app-detail-tabs / app-detail-tab- // / app-detail-content chrome (defined in _applications.scss), matching the- // WordPress detail page — no bespoke tab styles here anymore.+ // Tab strip + content reuse the shared app-detail-tabs / app-detail-tab /+ // app-detail-content chrome (defined in _applications.scss), matching the+ // WordPress detail page. Let the strip WRAP (instead of scroll) so the+ // right-pinned Settings tab can never get pushed off-screen.+ .app-detail-tabs {+ flex-wrap: wrap;+ overflow-x: visible;+ row-gap: 2px;+ }++ // Settings pinned to the far right of the strip (matches the mockup's gear).+ .app-detail-tab--end { margin-left: auto; }// Scoped console/editor polish for tabs that use shared classes// (Gunicorn editor, Commands output) — token re-tint only.