Skip to content

Commit 1fbbb14

Browse files
Add full width to code snippet on mobile screens
1 parent 5d3ecce commit 1fbbb14

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/lib/components/MultiCodeContextless.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
</script>
5656

5757
<section
58-
class="dark web-code-snippet mx-auto lg:!max-w-[90vw]"
58+
class="dark web-code-snippet mx-auto w-full lg:!max-w-[90vw]"
5959
aria-label="code-snippet panel"
6060
style:width={width ? width / 16 + 'rem' : 'inherit'}
6161
style:height={height ? height / 16 + 'rem' : 'inherit'}

src/lib/components/shared/dialog.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import { fade, scale } from 'svelte/transition';
33
import { createDialog, melt } from '@melt-ui/svelte';
44
import type { Snippet } from 'svelte';
5-
import { browser } from '$app/environment';
65
76
type Props = {
87
url: string;
@@ -12,7 +11,7 @@
1211
};
1312
1413
const {
15-
elements: { portalled, trigger, content, overlay },
14+
elements: { trigger, content, overlay },
1615
states: { open }
1716
} = createDialog({
1817
forceVisible: true,

0 commit comments

Comments
 (0)