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

Commit6f29727

Browse files
authored
Update design (#582)
* Set buttons border radius to 2px* Reduce button icon size to 14px* Fix tabs border radius* Give a minimum height to netdata table header* v5.0.68
1 parent92a7445 commit6f29727

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"@netdata/netdata-ui",
3-
"version":"5.0.67",
3+
"version":"5.0.68",
44
"description":"netdata UI kit",
55
"main":"dist/index.js",
66
"module":"dist/es6/index.js",

‎src/components/button/styled.js‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,13 @@ export const StyledButton = styled.button.attrs(
125125
({ groupFirst, groupLast, groupMiddle, ...props})=>({
126126
padding:props.padding||props.tiny ?[0.5,1] :props.small ?[1,3] :[2],
127127
colors:colorsByFlavour(props),
128-
round:groupFirst ?{side:"left"} :groupLast ?{side:"right"} :!groupMiddle,
128+
round:groupFirst
129+
?{side:"left",size:0.5}
130+
:groupLast
131+
?{side:"right",size:0.5}
132+
:groupMiddle
133+
?false
134+
:0.5,
129135
...withTheme(props),
130136
})
131137
)`
@@ -197,13 +203,13 @@ export const StyledButton = styled.button.attrs(
197203
?typeofprops.iconWidth==="string"
198204
?props.iconWidth
199205
:`${props.iconWidth}px`
200-
:getSizeBy(2)(props)};
206+
:getSizeBy(1.75)(props)};
201207
width:${props=>
202208
props.iconHeight
203209
?typeofprops.iconHeight==="string"
204210
?props.iconHeight
205211
:`${props.iconHeight}px`
206-
:getSizeBy(2)(props)};
212+
:getSizeBy(1.75)(props)};
207213
fill:${props=>props.colors.iconColor(props)};
208214
}
209215

‎src/components/table/body/header/cell.js‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ const BodyHeaderCell = ({
6969
:header.colSpan
7070
}
7171
width={`${header.subHeaders.length ?header.subHeaders.reduce((s,h)=>s+h.column.getSize(),0) :column.getSize()}px`}
72+
height={{min:"45px"}}
7273
position="relative"
7374
{...(column.getCanSort()&&
7475
coloredSortedColumn&&
@@ -80,8 +81,16 @@ const BodyHeaderCell = ({
8081
{...headStyles}
8182
column
8283
>
83-
<Flexflexcolumnwidth="100%"alignItems={column.columnDef.align||"start"}gap={1}>
84+
<Flex
85+
flex
86+
column
87+
width="100%"
88+
alignItems={column.columnDef.align||"start"}
89+
justifyContent="center"
90+
gap={1}
91+
>
8492
<LabelContainer
93+
data-testid="netdata-table-header-cell-label-container"
8594
alignItems="center"
8695
cursor={column.getCanSort() ?"pointer" :"default"}
8796
onClick={column.getCanSort() ?column.getToggleSortingHandler() :undefined}

‎src/components/tabs/styled.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const StyledTab = styled(Flex).attrs(props => ({
3636
active ?getColor("accent") :green ?getColor(["transparent","full"]) :getColor("border")};
3737
box-sizing: border-box;
3838
39-
border-radius:4px 4px 0 0;
39+
border-radius:2px 2px 0 0;
4040
4141
max-width:${({ maxWidth})=>maxWidth??getSizeBy(26)};
4242
height:${({ small, green})=>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp