mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-09-14 21:46:35 +00:00
30 lines
506 B
Svelte
30 lines
506 B
Svelte
<script lang="ts">
|
|
import type { Snippet } from "svelte";
|
|
|
|
interface Props {
|
|
pad?: string;
|
|
children: Snippet;
|
|
}
|
|
|
|
let { pad = "0", children }: Props = $props();
|
|
</script>
|
|
|
|
<div class="preview-stack" style="padding:{pad};">
|
|
{@render children()}
|
|
</div>
|
|
|
|
<style>
|
|
.preview-stack {
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px;
|
|
width: 100%;
|
|
min-width: 0;
|
|
display: grid;
|
|
}
|
|
@media (max-width: 1100px) {
|
|
.preview-stack {
|
|
grid-template-columns: repeat(3, minmax(220px, 1fr));
|
|
}
|
|
}
|
|
</style>
|