Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit838fbc1

Browse files
fix: improve options table reading (#20341)
From@chrifro - text-sm regular for the body text (24px line height)- text-sm bold and white font for the headline**Before:**<img width="1624" height="967" alt="Screenshot 2025-10-16 at 10 08 19"src="https://github.com/user-attachments/assets/b0ef6aef-57b6-43d0-921b-8028c58866f0"/>**After:**<img width="1624" height="967" alt="Screenshot 2025-10-16 at 10 10 27"src="https://github.com/user-attachments/assets/f39526f3-f0cc-4678-83b3-84bf4161b5be"/>
1 parenta833b7a commit838fbc1

File tree

2 files changed

+7
-37
lines changed

2 files changed

+7
-37
lines changed

‎site/src/pages/DeploymentSettingsPage/Option.tsx‎

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,17 @@ import type { FC, HTMLAttributes, PropsWithChildren } from "react";
55
import{MONOSPACE_FONT_FAMILY}from"theme/constants";
66

77
exportconstOptionName:FC<PropsWithChildren>=({ children})=>{
8-
return<spancss={{display:"block"}}>{children}</span>;
9-
};
10-
11-
exportconstOptionDescription:FC<PropsWithChildren>=({ children})=>{
12-
consttheme=useTheme();
13-
148
return(
15-
<span
16-
css={{
17-
display:"block",
18-
color:theme.palette.text.secondary,
19-
fontSize:14,
20-
marginTop:4,
21-
}}
22-
>
9+
<spanclassName="block text-sm font-medium text-content-primary">
2310
{children}
2411
</span>
2512
);
2613
};
2714

15+
exportconstOptionDescription:FC<PropsWithChildren>=({ children})=>{
16+
return<spanclassName="text-sm font-normal">{children}</span>;
17+
};
18+
2819
interfaceOptionValueProps{
2920
children?:boolean|number|string|string[]|Record<string,boolean>;
3021
}

‎site/src/pages/DeploymentSettingsPage/OptionsTable.tsx‎

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import{css}from"@emotion/react";
21
importtype{SerpentOption}from"api/typesGenerated";
32
import{
43
Table,
@@ -29,20 +28,7 @@ const OptionsTable: FC<OptionsTableProps> = ({ options, additionalValues }) => {
2928
}
3029

3130
return(
32-
<Table
33-
className="options-table"
34-
css={css`
35-
&td {
36-
padding-top:24px;
37-
padding-bottom:24px;
38-
}
39-
40-
&td:last-child,
41-
&th:last-child {
42-
padding-left:32px;
43-
}
44-
`}
45-
>
31+
<TableclassName="options-table">
4632
<TableHeader>
4733
<TableRow>
4834
<TableHeadclassName="w-1/2">Option</TableHead>
@@ -56,14 +42,7 @@ const OptionsTable: FC<OptionsTableProps> = ({ options, additionalValues }) => {
5642
<TableCell>
5743
<OptionName>{option.name}</OptionName>
5844
<OptionDescription>{option.description}</OptionDescription>
59-
<div
60-
css={{
61-
marginTop:24,
62-
display:"flex",
63-
flexWrap:"wrap",
64-
gap:8,
65-
}}
66-
>
45+
<divclassName="pt-2 flex flex-wrap gap-2">
6746
{option.flag&&(
6847
<OptionConfigisSource={option.value_source==="flag"}>
6948
<OptionConfigFlag>CLI</OptionConfigFlag>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp