Skip to content

Commit

Permalink
#451 ensuring fixed sized grid elements in CSS grid, see https://stac…
Browse files Browse the repository at this point in the history
  • Loading branch information
klues committed Nov 27, 2024
1 parent f00c5bb commit 64fc05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vue-components/grid-layout/grid-layout.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<component :is="useOptions.componentType" class="grid-layout" :style="`grid-template-columns: repeat(${columns}, 1fr); grid-template-rows: repeat(${rows}, 1fr); background-color: ${useOptions.backgroundColor}`">
<component :is="useOptions.componentType" class="grid-layout" :style="`grid-template-columns: repeat(${columns}, minmax(0, 1fr)); grid-template-rows: repeat(${rows}, minmax(0, 1fr)); background-color: ${useOptions.backgroundColor}`">
<slot></slot>
</component>
</template>
Expand Down

0 comments on commit 64fc05f

Please sign in to comment.