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:
@@ -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>
|
||||
)}
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user