Fleet UI: Dashboard responsiveness tweaks (#27990)

This commit is contained in:
RachelElysia 2025-04-09 09:54:16 -04:00 committed by GitHub
parent f16b01383b
commit 335b302cd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 17 additions and 10 deletions

View file

@ -76,13 +76,13 @@ const HostCountCard = ({
const renderCard = () => {
if (iconPosition === "left") {
return (
<>
<div className={`${baseClass}__icon-count`}>
{renderIcon()}
<div className={`${baseClass}__icon`}>
{renderIcon()}
<div className={`${baseClass}__count-description`}>
{renderCount()}
{renderDescription()}
</div>
{renderDescription()}
</>
</div>
);
}

View file

@ -11,7 +11,7 @@
display: flex;
flex-direction: column;
align-items: center;
gap: $pad-small;
gap: $pad-xsmall;
text-align: left;
height: fit-content;
padding: $x-large;
@ -30,13 +30,20 @@
}
}
&__icon-count {
&__icon {
display: flex;
flex-direction: row;
align-items: center;
gap: 12px;
}
&__count-description {
display: flex;
flex-direction: column;
align-items: left;
gap: $pad-xsmall;
}
&__count {
font-size: $x-large;
white-space: nowrap;

View file

@ -10,7 +10,7 @@
grid-template-rows: repeat(3, auto);
}
// >= 576px and < 880px
// >= 576px and < 768px
@media (min-width: $break-mobile-md) {
display: grid;
@ -42,10 +42,10 @@
}
}
// >= 880px
// >= 768px
// Up to 3 cards are in a single row.
// 16pt gap
@media (min-width: $break-sm) {
@media (min-width: $break-xs) {
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
grid-template-rows: 1fr;
gap: $pad-medium;