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 AppPanel from "./_components/AppPanel.svelte"
import * as routify from "@roxi/routify" import * as routify from "@roxi/routify"
import { syncURLToState } from "helpers/urlStateSync" import { syncURLToState } from "helpers/urlStateSync"
import { import { screenStore, selectedScreen } from "stores/builder"
screenStore,
selectedScreen,
selectedComponent,
} from "stores/builder"
import { onDestroy } from "svelte" import { onDestroy } from "svelte"
import LeftPanel from "./_components/LeftPanel.svelte" import LeftPanel from "./_components/LeftPanel.svelte"

View File

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

View File

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