Fix issue where gridstack items can have a width of zero (#85)
This commit is contained in:
@@ -17,6 +17,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Define min size for gridstack items
|
||||||
|
.grid-stack > .grid-stack-item {
|
||||||
|
min-width: calc(100% / var(--gridstack-column-count));
|
||||||
|
min-height: calc(1px * var(--gridstack-widget-width));
|
||||||
|
}
|
||||||
|
|
||||||
// Styling for grid-stack main area
|
// Styling for grid-stack main area
|
||||||
@for $i from 1 to 96 {
|
@for $i from 1 to 96 {
|
||||||
.grid-stack > .grid-stack-item[gs-w="#{$i}"] {
|
.grid-stack > .grid-stack-item[gs-w="#{$i}"] {
|
||||||
@@ -54,10 +60,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid-stack > .grid-stack-item {
|
|
||||||
min-width: #{var(--gridstack-widget-width)};
|
|
||||||
}
|
|
||||||
|
|
||||||
// Styling for sidebar grid-stack elements
|
// Styling for sidebar grid-stack elements
|
||||||
@for $i from 1 to 96 {
|
@for $i from 1 to 96 {
|
||||||
.grid-stack.grid-stack-sidebar > .grid-stack-item[gs-w="#{$i}"] {
|
.grid-stack.grid-stack-sidebar > .grid-stack-item[gs-w="#{$i}"] {
|
||||||
|
|||||||
Reference in New Issue
Block a user