Skip to content

Commit 1e81d2d

Browse files
committed
fix: update grid layout for NodeDetail component and remove unused styles
1 parent 9c852ff commit 1e81d2d

File tree

1 file changed

+2
-37
lines changed

1 file changed

+2
-37
lines changed

core/ui/src/views/NodeDetail.vue

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
<cv-row>
9393
<cv-column>
9494
<!-- card grid -->
95-
<div class="card-grid nodeinfo-grid">
95+
<div class="card-grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 3xl:grid-cols-4">
9696
<cv-tile :light="true">
9797
<h4 class="mg-bottom-lg">{{ $t("node_detail.overview") }}</h4>
9898
<template v-if="loading.listNodes">
@@ -173,7 +173,7 @@
173173
</template>
174174
</template>
175175
</cv-tile>
176-
<cv-tile class="alerts-tile" :light="true">
176+
<cv-tile class="col-span-2" :light="true">
177177
<h4 class="mg-bottom-lg">{{ $t("node_detail.alerts") }}</h4>
178178
<cv-row>
179179
<cv-column>
@@ -964,41 +964,6 @@ export default {
964964
}
965965
}
966966
967-
.alerts-tile {
968-
min-width: 0; /* avoid overflow */
969-
overflow-x: auto;
970-
}
971-
972-
.nodeinfo-grid {
973-
grid-template-columns: 0.7fr 0.7fr 1.6fr; /* 3 columns on desktop */
974-
gap: 2rem;
975-
}
976-
977-
/* On tablet: 2 columns, alerts move to new line */
978-
@media (max-width: 1200px) {
979-
.nodeinfo-grid {
980-
grid-template-columns: 1fr 1fr; /* 2 columns */
981-
gap: 1.5rem;
982-
}
983-
984-
.alerts-tile {
985-
grid-column: 1 / -1; /* span full width at bottom */
986-
order: 3; /* ensure it's last */
987-
}
988-
}
989-
990-
/* On very small screens: stack vertically */
991-
@media (max-width: 640px) {
992-
.nodeinfo-grid {
993-
grid-template-columns: 1fr; /* 1 column */
994-
}
995-
996-
.alerts-tile {
997-
grid-column: 1 / -1; /* span full width at bottom */
998-
order: 3; /* ensure it's last */
999-
}
1000-
}
1001-
1002967
.long-text-row {
1003968
display: flex;
1004969
align-items: baseline;

0 commit comments

Comments
 (0)