💄 Large screen gridstack max value to 32 and sidebar gridstack over 13 bug fix (#1339)

* 💄 Large screen gridstack max value to 32

* 🐛 Fix sidebar bug
This commit is contained in:
Tagaishi
2023-09-01 17:16:37 +02:00
committed by GitHub
parent eb3bbfb025
commit ad61b155b8
2 changed files with 4 additions and 4 deletions

View File

@@ -78,7 +78,7 @@ export const GridstackConfiguration = () => {
pixels: GridstackBreakpoints.large,
})}
>
<Slider min={5} max={20} mt="xs" {...form.getInputProps('columnCountLarge')} />
<Slider min={5} max={32} mt="xs" {...form.getInputProps('columnCountLarge')} />
</Input.Wrapper>
{form.isDirty() && (
<Alert variant="light" color="yellow" title="Unsaved changes" my="md">

View File

@@ -18,7 +18,7 @@
}
// Styling for grid-stack main area
@for $i from 1 to 21 {
@for $i from 1 to 96 {
.grid-stack>.grid-stack-item[gs-w="#{$i}"] { width: calc(100% / #{var(--gridstack-column-count)} * #{$i}) }
.grid-stack>.grid-stack-item[gs-min-w="#{$i}"] { min-width: calc(100% / #{var(--gridstack-column-count)} * #{$i}) }
.grid-stack>.grid-stack-item[gs-max-w="#{$i}"] { max-width: calc(100% / #{var(--gridstack-column-count)} * #{$i}) }
@@ -30,7 +30,7 @@
.grid-stack>.grid-stack-item[gs-max-h="#{$i}"] { max-height: calc(#{$i}px * #{var(--gridstack-widget-width)}) }
}
@for $i from 1 to 21 {
@for $i from 1 to 96 {
.grid-stack>.grid-stack-item[gs-x="#{$i}"] { left: calc(100% / #{var(--gridstack-column-count)} * #{$i}) }
}
@@ -44,7 +44,7 @@
}
// Styling for sidebar grid-stack elements
@for $i from 1 to 3 {
@for $i from 1 to 96 {
.grid-stack.grid-stack-sidebar>.grid-stack-item[gs-w="#{$i}"] { width: 128px * $i }
.grid-stack.grid-stack-sidebar>.grid-stack-item[gs-min-w="#{$i}"] { min-width: 128px * $i }
.grid-stack.grid-stack-sidebar>.grid-stack-item[gs-max-w="#{$i}"] { max-width: 128px * $i }