Skip to content

Commit

Permalink
Smooth some padding when embedded in iframe.
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanvugt committed Aug 6, 2023
1 parent aa5e999 commit 98d2f64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
{:else if $playbackState}
<TooltipTemplateHotkeys id={helpTooltipOptions.templateId} />
<TooltipTemplateSettings id={settingsTooltipOptions.templateId} settings={data.settings} />
<div class="h-screen w-full max-w-screen-xl mx-auto py-4 flex flex-col md:flex-row">
<div class="flex flex-col grow mt-4 md:mt-0">
<div class="h-screen w-full max-w-screen-xl mx-auto flex flex-col md:flex-row">
<div class="flex flex-col grow">
{#if data.settings.title}
<h1 class="text-center font-bold text-lg">{data.settings.title}</h1>
{/if}
Expand All @@ -91,7 +91,7 @@
{/if}
</div>
{#if data.settings.showScoreboard}
<div class="basis-full md:basis-2/5 order-first md:order-last px-2 md:pl-0">
<div class="basis-full md:basis-2/5 order-first md:order-last p-2 md:pl-0">
<Scoreboard />
</div>
{/if}
Expand Down
8 changes: 4 additions & 4 deletions src/routes/debug/iframes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@
];
</script>

<div class="flex flex-col align-center m-4 text-center w-full">
<div class="m-4 w-full">
{#each configs as config}
<div class="mb-16">
<div class="flex flex-col w-full mb-16">
<p class="text-xl font-bold text-center">{config.title}</p>
<p class="text-center text-blue-500 mb-2">
<p class="text-sm text-center text-blue-500 mb-2">
<a href={config.url}>{config.url}</a>
</p>
<div
class="rounded-sm border-2 border-solid border-pink-500 m-auto"
class="rounded-sm border-2 border-solid border-pink-500 mx-auto"
style:width={config.width}
style:aspect-ratio={config.aspectRatio}
style:max-height={'720px'}
Expand Down

0 comments on commit 98d2f64

Please sign in to comment.