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