Improve more component compatibility with grid layouts
This commit is contained in:
parent
3630c73837
commit
2bc4d3a6da
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue