Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
04b4483d
authored
May 19, 2026
by
yyhhyyyyyy
Committed by
GitHub
May 19, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(web): normalize model detail tabs layout (#4938)
parent
ee9736bb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
web/default/src/features/dashboard/index.tsx
+1
-1
web/default/src/features/models/index.tsx
+1
-1
web/default/src/features/pricing/components/model-details.tsx
+3
-3
web/default/src/features/profile/components/profile-settings-card.tsx
+1
-1
web/default/src/features/usage-logs/index.tsx
+1
-1
No files found.
web/default/src/features/dashboard/index.tsx
View file @
04b4483d
...
...
@@ -236,7 +236,7 @@ export function Dashboard() {
<
div
className=
'flex flex-wrap items-center justify-between gap-1.5 sm:gap-2'
>
{
showSectionTabs
?
(
<
Tabs
value=
{
activeSection
}
onValueChange=
{
handleSectionChange
}
>
<
TabsList
className=
'h-auto max-w-full flex-wrap justify-start'
>
<
TabsList
className=
'
group-data-horizontal/tabs:
h-auto max-w-full flex-wrap justify-start'
>
{
visibleSections
.
map
((
section
)
=>
(
<
TabsTrigger
key=
{
section
}
value=
{
section
}
>
{
t
(
SECTION_META
[
section
].
titleKey
)
}
...
...
web/default/src/features/models/index.tsx
View file @
04b4483d
...
...
@@ -142,7 +142,7 @@ function ModelsContent() {
<
SectionPageLayout
.
Content
>
<
div
className=
'space-y-4'
>
<
Tabs
value=
{
activeSection
}
onValueChange=
{
handleSectionChange
}
>
<
TabsList
className=
'h-auto max-w-full flex-wrap justify-start'
>
<
TabsList
className=
'
group-data-horizontal/tabs:
h-auto max-w-full flex-wrap justify-start'
>
{
MODELS_SECTION_IDS
.
map
((
section
)
=>
(
<
TabsTrigger
key=
{
section
}
value=
{
section
}
>
{
t
(
SECTION_META
[
section
].
titleKey
)
}
...
...
web/default/src/features/pricing/components/model-details.tsx
View file @
04b4483d
...
...
@@ -920,17 +920,17 @@ export function ModelDetailsContent(props: ModelDetailsContentProps) {
<
ModelHeader
model=
{
props
.
model
}
/>
<
Tabs
defaultValue=
'overview'
className=
'gap-4'
>
<
TabsList
className=
'bg-muted/60
h-auto w-full justify-start gap-1 overflow-x-auto rounded-lg p-1
'
>
<
TabsList
className=
'bg-muted/60
grid w-full grid-cols-3 gap-1 rounded-lg p-1 group-data-horizontal/tabs:h-auto
'
>
{
TAB_VALUES
.
map
((
value
)
=>
{
const
Icon
=
TAB_META
[
value
].
icon
return
(
<
TabsTrigger
key=
{
value
}
value=
{
value
}
className=
'h-8 gap-1.5 rounded-md px-3 text-xs sm:text-sm'
className=
'h-8
min-w-0
gap-1.5 rounded-md px-3 text-xs sm:text-sm'
>
<
Icon
className=
'size-3.5'
/>
<
span
>
{
t
(
TAB_META
[
value
].
labelKey
)
}
</
span
>
<
span
className=
'truncate'
>
{
t
(
TAB_META
[
value
].
labelKey
)
}
</
span
>
</
TabsTrigger
>
)
})
}
...
...
web/default/src/features/profile/components/profile-settings-card.tsx
View file @
04b4483d
...
...
@@ -69,7 +69,7 @@ export function ProfileSettingsCard({
icon=
{
<
Settings
className=
'h-4 w-4'
/>
}
>
<
Tabs
value=
{
activeTab
}
onValueChange=
{
setActiveTab
}
>
<
TabsList
className=
'grid h-10 w-full grid-cols-2 items-stretch gap-1 rounded-xl p-1'
>
<
TabsList
className=
'grid
group-data-horizontal/tabs:
h-10 w-full grid-cols-2 items-stretch gap-1 rounded-xl p-1'
>
<
TabsTrigger
value=
'bindings'
className=
'h-full gap-2 rounded-lg px-3 py-0 leading-none'
...
...
web/default/src/features/usage-logs/index.tsx
View file @
04b4483d
...
...
@@ -127,7 +127,7 @@ function UsageLogsContent() {
<
div
className=
'space-y-4'
>
{
showTaskSwitcher
&&
(
<
Tabs
value=
{
activeCategory
}
onValueChange=
{
handleSectionChange
}
>
<
TabsList
className=
'h-auto max-w-full flex-wrap justify-start'
>
<
TabsList
className=
'
group-data-horizontal/tabs:
h-auto max-w-full flex-wrap justify-start'
>
{
visibleSections
.
map
((
section
)
=>
(
<
TabsTrigger
key=
{
section
}
value=
{
section
}
>
{
t
(
SECTION_META
[
section
].
titleKey
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment