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

View File

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