diff --git a/stash-web/src/App.css b/stash-web/src/App.css index e12a5eb..6c80588 100644 --- a/stash-web/src/App.css +++ b/stash-web/src/App.css @@ -35,7 +35,11 @@ align-items: center; justify-content: space-between; gap: var(--su-space-4); - height: var(--su-header-height); + width: 100%; + max-width: var(--su-layout-width); + height: calc(var(--su-header-height) - 1px); + margin: 0 auto; + padding: 0 var(--su-space-5); } .site-brand { @@ -89,7 +93,6 @@ display: flex; flex-direction: column; gap: var(--su-space-5); - padding-top: 88px; padding-bottom: var(--su-space-10); } @@ -111,6 +114,10 @@ text-align: center; } +.profile-bio { + line-height: 1.8; +} + .service-panel { padding: 12px 14px; } @@ -118,8 +125,18 @@ .service-stats { display: flex; flex-direction: column; + gap: 6px; + margin-top: 10px; +} + +.service-actions { + display: flex; gap: var(--su-space-2); - margin: var(--su-space-3) 0; + margin-top: var(--su-space-3); +} + +.service-actions > * { + flex: 1; } .service-host { @@ -210,6 +227,10 @@ padding: 12px var(--su-space-5); } +.detail-nav > * { + width: 100%; +} + .detail-back { color: var(--su-color-primary); font-size: var(--su-font-size-md); diff --git a/stash-web/src/App.tsx b/stash-web/src/App.tsx index a35899e..ccfa17a 100644 --- a/stash-web/src/App.tsx +++ b/stash-web/src/App.tsx @@ -248,6 +248,7 @@ export default function App() { headerVariant="solid" siderBordered={false} contentPadding="none" + contentOffset={88} height="screen" scrollable contentId="content-scroll" diff --git a/stash-web/src/components/sidebar/CategoryNav.tsx b/stash-web/src/components/sidebar/CategoryNav.tsx index 7f4c34a..96c9897 100644 --- a/stash-web/src/components/sidebar/CategoryNav.tsx +++ b/stash-web/src/components/sidebar/CategoryNav.tsx @@ -66,7 +66,7 @@ export function CategoryNav({ return ( - + ) } diff --git a/stash-web/src/components/sidebar/ProfileCard.tsx b/stash-web/src/components/sidebar/ProfileCard.tsx index cc4cc14..95bcc7e 100644 --- a/stash-web/src/components/sidebar/ProfileCard.tsx +++ b/stash-web/src/components/sidebar/ProfileCard.tsx @@ -1,4 +1,4 @@ -import { Avatar, Card, Paragraph, Tag, Text, Title } from '@stash/ui' +import { Avatar, Card, Icon, Text, Title } from '@stash/ui' import { PLACEHOLDER_PROFILE } from '../../profile' /** @@ -10,10 +10,14 @@ export function ProfileCard() { return ( - + } verified /> {name} - {!name.includes(role) && {role}} - {bio} + + {role} + + + {bio} + IP 属地:{location} diff --git a/stash-web/src/components/sidebar/ServicePanel.tsx b/stash-web/src/components/sidebar/ServicePanel.tsx index 4e53eeb..dbe65d4 100644 --- a/stash-web/src/components/sidebar/ServicePanel.tsx +++ b/stash-web/src/components/sidebar/ServicePanel.tsx @@ -1,4 +1,4 @@ -import { Button, Card, Divider, Icon, Space, Tag, Text, Title } from '@stash/ui' +import { Button, Card, Icon, Space, Tag, Text, Title } from '@stash/ui' import type { Project } from '../../api' /** @@ -26,8 +26,6 @@ export function ServicePanel({ projects, live, refreshing, onRefresh }: ServiceP - -
@@ -45,7 +43,7 @@ export function ServicePanel({ projects, live, refreshing, onRefresh }: ServiceP
- +
) }