Eliminate extra vertical stretching inside vitals cards by applying align-content start and setting fixed 56px heights
This commit is contained in:
@@ -94,11 +94,13 @@
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
max-width: 1400px;
|
max-width: 1400px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 24px;
|
padding: 12px;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
justify-content: flex-start;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === Header === */
|
/* === Header === */
|
||||||
@@ -386,14 +388,14 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(3, 1fr);
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
flex: 1;
|
align-content: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vital-card {
|
.vital-card {
|
||||||
background: var(--bg-card);
|
background: var(--bg-card);
|
||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 6px 10px;
|
padding: 8px 12px;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow:
|
box-shadow:
|
||||||
@@ -402,10 +404,12 @@
|
|||||||
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-areas: "header value waveform";
|
grid-template-areas: "header value waveform";
|
||||||
grid-template-columns: 85px 65px 1fr;
|
grid-template-columns: 90px 70px 1fr;
|
||||||
grid-template-rows: 32px;
|
grid-template-rows: 40px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0 8px;
|
gap: 0 10px;
|
||||||
|
height: 56px;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vital-card:hover {
|
.vital-card:hover {
|
||||||
@@ -524,7 +528,7 @@
|
|||||||
|
|
||||||
.vital-value {
|
.vital-value {
|
||||||
font-family: 'JetBrains Mono', monospace;
|
font-family: 'JetBrains Mono', monospace;
|
||||||
font-size: 24px;
|
font-size: 28px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
letter-spacing: -0.5px;
|
letter-spacing: -0.5px;
|
||||||
@@ -539,13 +543,13 @@
|
|||||||
.vital-card.map-card .vital-value { color: var(--map-color); text-shadow: 0 0 4px rgba(219, 39, 119, 0.12); }
|
.vital-card.map-card .vital-value { color: var(--map-color); text-shadow: 0 0 4px rgba(219, 39, 119, 0.12); }
|
||||||
|
|
||||||
.vital-value.no-data {
|
.vital-value.no-data {
|
||||||
font-size: 18px;
|
font-size: 22px;
|
||||||
color: var(--text-dim) !important;
|
color: var(--text-dim) !important;
|
||||||
text-shadow: none !important;
|
text-shadow: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vital-value .unit {
|
.vital-value .unit {
|
||||||
font-size: 10px;
|
font-size: 11px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
margin-left: 2px;
|
margin-left: 2px;
|
||||||
@@ -554,7 +558,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.vital-value .slash {
|
.vital-value .slash {
|
||||||
font-size: 18px;
|
font-size: 22px;
|
||||||
opacity: 0.3;
|
opacity: 0.3;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
@@ -573,7 +577,7 @@
|
|||||||
/* === Waveform Canvas === */
|
/* === Waveform Canvas === */
|
||||||
.waveform-container {
|
.waveform-container {
|
||||||
grid-area: waveform;
|
grid-area: waveform;
|
||||||
height: 32px;
|
height: 40px;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
@@ -94,11 +94,13 @@
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
max-width: 1400px;
|
max-width: 1400px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 24px;
|
padding: 12px;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
justify-content: flex-start;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === Header === */
|
/* === Header === */
|
||||||
@@ -386,14 +388,14 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(3, 1fr);
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
flex: 1;
|
align-content: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vital-card {
|
.vital-card {
|
||||||
background: var(--bg-card);
|
background: var(--bg-card);
|
||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 6px 10px;
|
padding: 8px 12px;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow:
|
box-shadow:
|
||||||
@@ -402,10 +404,12 @@
|
|||||||
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-areas: "header value waveform";
|
grid-template-areas: "header value waveform";
|
||||||
grid-template-columns: 85px 65px 1fr;
|
grid-template-columns: 90px 70px 1fr;
|
||||||
grid-template-rows: 32px;
|
grid-template-rows: 40px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0 8px;
|
gap: 0 10px;
|
||||||
|
height: 56px;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vital-card:hover {
|
.vital-card:hover {
|
||||||
@@ -524,7 +528,7 @@
|
|||||||
|
|
||||||
.vital-value {
|
.vital-value {
|
||||||
font-family: 'JetBrains Mono', monospace;
|
font-family: 'JetBrains Mono', monospace;
|
||||||
font-size: 24px;
|
font-size: 28px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
letter-spacing: -0.5px;
|
letter-spacing: -0.5px;
|
||||||
@@ -539,13 +543,13 @@
|
|||||||
.vital-card.map-card .vital-value { color: var(--map-color); text-shadow: 0 0 4px rgba(219, 39, 119, 0.12); }
|
.vital-card.map-card .vital-value { color: var(--map-color); text-shadow: 0 0 4px rgba(219, 39, 119, 0.12); }
|
||||||
|
|
||||||
.vital-value.no-data {
|
.vital-value.no-data {
|
||||||
font-size: 18px;
|
font-size: 22px;
|
||||||
color: var(--text-dim) !important;
|
color: var(--text-dim) !important;
|
||||||
text-shadow: none !important;
|
text-shadow: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vital-value .unit {
|
.vital-value .unit {
|
||||||
font-size: 10px;
|
font-size: 11px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
margin-left: 2px;
|
margin-left: 2px;
|
||||||
@@ -554,7 +558,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.vital-value .slash {
|
.vital-value .slash {
|
||||||
font-size: 18px;
|
font-size: 22px;
|
||||||
opacity: 0.3;
|
opacity: 0.3;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
@@ -573,7 +577,7 @@
|
|||||||
/* === Waveform Canvas === */
|
/* === Waveform Canvas === */
|
||||||
.waveform-container {
|
.waveform-container {
|
||||||
grid-area: waveform;
|
grid-area: waveform;
|
||||||
height: 32px;
|
height: 40px;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
+15
-11
@@ -94,11 +94,13 @@
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
max-width: 1400px;
|
max-width: 1400px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 24px;
|
padding: 12px;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
justify-content: flex-start;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === Header === */
|
/* === Header === */
|
||||||
@@ -386,14 +388,14 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(3, 1fr);
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
flex: 1;
|
align-content: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vital-card {
|
.vital-card {
|
||||||
background: var(--bg-card);
|
background: var(--bg-card);
|
||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 6px 10px;
|
padding: 8px 12px;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow:
|
box-shadow:
|
||||||
@@ -402,10 +404,12 @@
|
|||||||
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-areas: "header value waveform";
|
grid-template-areas: "header value waveform";
|
||||||
grid-template-columns: 85px 65px 1fr;
|
grid-template-columns: 90px 70px 1fr;
|
||||||
grid-template-rows: 32px;
|
grid-template-rows: 40px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0 8px;
|
gap: 0 10px;
|
||||||
|
height: 56px;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vital-card:hover {
|
.vital-card:hover {
|
||||||
@@ -524,7 +528,7 @@
|
|||||||
|
|
||||||
.vital-value {
|
.vital-value {
|
||||||
font-family: 'JetBrains Mono', monospace;
|
font-family: 'JetBrains Mono', monospace;
|
||||||
font-size: 24px;
|
font-size: 28px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
letter-spacing: -0.5px;
|
letter-spacing: -0.5px;
|
||||||
@@ -539,13 +543,13 @@
|
|||||||
.vital-card.map-card .vital-value { color: var(--map-color); text-shadow: 0 0 4px rgba(219, 39, 119, 0.12); }
|
.vital-card.map-card .vital-value { color: var(--map-color); text-shadow: 0 0 4px rgba(219, 39, 119, 0.12); }
|
||||||
|
|
||||||
.vital-value.no-data {
|
.vital-value.no-data {
|
||||||
font-size: 18px;
|
font-size: 22px;
|
||||||
color: var(--text-dim) !important;
|
color: var(--text-dim) !important;
|
||||||
text-shadow: none !important;
|
text-shadow: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vital-value .unit {
|
.vital-value .unit {
|
||||||
font-size: 10px;
|
font-size: 11px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
margin-left: 2px;
|
margin-left: 2px;
|
||||||
@@ -554,7 +558,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.vital-value .slash {
|
.vital-value .slash {
|
||||||
font-size: 18px;
|
font-size: 22px;
|
||||||
opacity: 0.3;
|
opacity: 0.3;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
@@ -573,7 +577,7 @@
|
|||||||
/* === Waveform Canvas === */
|
/* === Waveform Canvas === */
|
||||||
.waveform-container {
|
.waveform-container {
|
||||||
grid-area: waveform;
|
grid-area: waveform;
|
||||||
height: 32px;
|
height: 40px;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
Reference in New Issue
Block a user