1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-23 23:11:12 +02:00

fix layout id

This commit is contained in:
Kushagra Gour
2025-06-27 13:54:40 +05:30
parent 0f000b6896
commit e89bb4c5db
2 changed files with 3 additions and 3 deletions

View File

@@ -92,7 +92,7 @@ export function Share({
return (
<VStack gap={4} align="stretch">
<div style="min-width: 46ch">
<VStack gap={1} align="stretch">
<VStack gap={2} align="stretch">
<Switch
checked={val}
onChange={onChange}
@@ -116,7 +116,7 @@ export function Share({
onClick={copyUrl}
aria-label="Copy"
>
<Icon name="copy" />
<Icon name="copy" /> Copy
</Button>
</p>
)}

View File

@@ -110,7 +110,7 @@ if (location.search) {
const layout = params.get('layout');
if (!layout) return null;
if (layout === 'full') {
return 5;
return 4;
}
const _val = parseInt(layout, 10);
if (_val >= 1 && _val <= 5) {