Skip to content

Commit 5d9d637

Browse files
authored
Merge pull request #1007 from FlowFuse/1003-fixed-layout-width
Fixed Layout: Define a default layout-columns for the groups in a Fixed layout
2 parents 5e4c30f + b36be2e commit 5d9d637

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ui/src/layouts/Flex.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ export default {
113113
.nrdb-layout--flex {
114114
--layout-card-width: 320px;
115115
--layout-gap: 12px;
116+
/* set large number, as the group width will always rule here */
117+
--layout-columns: 100;
116118
}
117119
.nrdb-layout--flex {
118120
display: flex;
@@ -129,4 +131,10 @@ export default {
129131
.v-card {
130132
width: 100%;
131133
}
134+
135+
@media only screen and (max-width: 576px) {
136+
.nrdb-layout--flex {
137+
--layout-columns: 3;
138+
}
139+
}
132140
</style>

0 commit comments

Comments
 (0)