Improve more component compatibility with grid layouts

This commit is contained in:
Andrew Kingston 2024-08-02 10:00:49 +01:00
parent 3630c73837
commit 2bc4d3a6da
No known key found for this signature in database
3 changed files with 15 additions and 6 deletions

View File

@ -2,11 +2,7 @@
import AppPanel from "./_components/AppPanel.svelte"
import * as routify from "@roxi/routify"
import { syncURLToState } from "helpers/urlStateSync"
import {
screenStore,
selectedScreen,
selectedComponent,
} from "stores/builder"
import { screenStore, selectedScreen } from "stores/builder"
import { onDestroy } from "svelte"
import LeftPanel from "./_components/LeftPanel.svelte"

View File

@ -388,6 +388,14 @@
"name": "Button group",
"icon": "Button",
"hasChildren": false,
"size": {
"width": 200,
"height": 60
},
"grid": {
"hAlign": "stretch",
"vAlign": "stretch"
},
"settings": [
{
"section": true,
@ -570,7 +578,7 @@
"icon": "Button",
"editable": true,
"size": {
"width": 105,
"width": 120,
"height": 32
},
"grid": {

View File

@ -19,6 +19,11 @@
gap,
wrap: true,
}}
styles={{
normal: {
height: "100%",
},
}}
>
{#each buttons as { text, type, quiet, disabled, onClick, size, icon, gap }}
<BlockComponent