Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
zk
gpu-dcu-monitor
Commits
9115bf00
Commit
9115bf00
authored
May 27, 2026
by
zk
Browse files
Compact server cards for wide screens
parent
67d1723c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
21 deletions
+29
-21
public/styles.css
public/styles.css
+29
-21
No files found.
public/styles.css
View file @
9115bf00
...
@@ -302,26 +302,26 @@ h2 {
...
@@ -302,26 +302,26 @@ h2 {
.server-grid
{
.server-grid
{
display
:
grid
;
display
:
grid
;
grid-template-columns
:
repeat
(
auto-fill
,
minmax
(
min
(
100%
,
3
20px
),
1
fr
));
grid-template-columns
:
repeat
(
auto-fill
,
minmax
(
min
(
100%
,
2
7
0px
),
1
fr
));
grid-auto-rows
:
minmax
(
3
7
0px
,
auto
);
grid-auto-rows
:
minmax
(
3
4
0px
,
auto
);
gap
:
20
px
;
gap
:
14
px
;
align-items
:
stretch
;
align-items
:
stretch
;
flex
:
1
1
auto
;
flex
:
1
1
auto
;
min-height
:
0
;
min-height
:
0
;
overflow-y
:
auto
;
overflow-y
:
auto
;
padding
:
2px
10
px
24
px
2px
;
padding
:
2px
8
px
18
px
2px
;
}
}
.server-card
{
.server-card
{
position
:
relative
;
position
:
relative
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
min-height
:
3
7
0px
;
min-height
:
3
4
0px
;
min-width
:
0
;
min-width
:
0
;
border
:
1px
solid
var
(
--line
);
border
:
1px
solid
var
(
--line
);
border-radius
:
12px
;
border-radius
:
12px
;
background
:
#fff
;
background
:
#fff
;
padding
:
1
3
px
;
padding
:
1
2
px
;
transition
:
box-shadow
0.16s
ease
,
border-color
0.16s
ease
;
transition
:
box-shadow
0.16s
ease
,
border-color
0.16s
ease
;
}
}
...
@@ -392,18 +392,18 @@ h2 {
...
@@ -392,18 +392,18 @@ h2 {
.gpu-ring
{
.gpu-ring
{
display
:
grid
;
display
:
grid
;
grid-template-columns
:
72
px
1
fr
;
grid-template-columns
:
64
px
1
fr
;
align-items
:
center
;
align-items
:
center
;
gap
:
1
2
px
;
gap
:
1
0
px
;
margin
:
1
2
px
0
;
margin
:
1
0
px
0
;
}
}
.donut
{
.donut
{
position
:
relative
;
position
:
relative
;
display
:
grid
;
display
:
grid
;
place-items
:
center
;
place-items
:
center
;
width
:
72
px
;
width
:
64
px
;
height
:
72
px
;
height
:
64
px
;
border-radius
:
50%
;
border-radius
:
50%
;
background
:
conic-gradient
(
var
(
--level-color
,
var
(
--green
))
var
(
--busy
,
0%
),
#dfe8ec
0
);
background
:
conic-gradient
(
var
(
--level-color
,
var
(
--green
))
var
(
--busy
,
0%
),
#dfe8ec
0
);
}
}
...
@@ -411,8 +411,8 @@ h2 {
...
@@ -411,8 +411,8 @@ h2 {
.donut
::before
{
.donut
::before
{
content
:
""
;
content
:
""
;
position
:
absolute
;
position
:
absolute
;
width
:
50
px
;
width
:
44
px
;
height
:
50
px
;
height
:
44
px
;
border-radius
:
50%
;
border-radius
:
50%
;
background
:
#fff
;
background
:
#fff
;
}
}
...
@@ -425,7 +425,7 @@ h2 {
...
@@ -425,7 +425,7 @@ h2 {
.summary
strong
{
.summary
strong
{
display
:
block
;
display
:
block
;
font-size
:
2
1px
;
font-size
:
1
9
px
;
overflow-wrap
:
anywhere
;
overflow-wrap
:
anywhere
;
}
}
...
@@ -443,12 +443,12 @@ h2 {
...
@@ -443,12 +443,12 @@ h2 {
.gpu-chip
{
.gpu-chip
{
display
:
grid
;
display
:
grid
;
grid-template-rows
:
1
6
px
1
fr
;
grid-template-rows
:
1
4
px
1
fr
;
gap
:
4
px
;
gap
:
3
px
;
min-height
:
70
px
;
min-height
:
64
px
;
border
:
1px
solid
#cfe7dd
;
border
:
1px
solid
#cfe7dd
;
border-radius
:
8px
;
border-radius
:
8px
;
padding
:
4
px
;
padding
:
3
px
;
font-size
:
10px
;
font-size
:
10px
;
font-weight
:
800
;
font-weight
:
800
;
background
:
#e8f5ef
;
background
:
#e8f5ef
;
...
@@ -507,7 +507,7 @@ h2 {
...
@@ -507,7 +507,7 @@ h2 {
align-content
:
center
;
align-content
:
center
;
justify-items
:
center
;
justify-items
:
center
;
min-width
:
0
;
min-width
:
0
;
min-height
:
4
4
px
;
min-height
:
4
0
px
;
overflow
:
hidden
;
overflow
:
hidden
;
border-radius
:
6px
;
border-radius
:
6px
;
background
:
rgba
(
255
,
255
,
255
,
0.78
);
background
:
rgba
(
255
,
255
,
255
,
0.78
);
...
@@ -568,17 +568,25 @@ h2 {
...
@@ -568,17 +568,25 @@ h2 {
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
gap
:
6px
;
gap
:
6px
;
align-items
:
center
;
align-items
:
center
;
margin-top
:
auto
;
min-width
:
0
;
padding-top
:
14px
;
max-width
:
100%
;
margin-top
:
12px
;
}
}
.tag
{
.tag
{
max-width
:
100%
;
border-radius
:
999px
;
border-radius
:
999px
;
background
:
#eef6f6
;
background
:
#eef6f6
;
color
:
var
(
--teal-dark
);
color
:
var
(
--teal-dark
);
padding
:
4px
8px
;
padding
:
4px
8px
;
font-size
:
12px
;
font-size
:
12px
;
font-weight
:
700
;
font-weight
:
700
;
overflow-wrap
:
anywhere
;
}
.edit-card
{
flex
:
0
0
auto
;
margin-left
:
auto
;
}
}
.detail
{
.detail
{
...
...
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