Skip to content

Commit

Permalink
qr-generator: Improve style and borders
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Jul 10, 2024
1 parent 8c8a00a commit b8739a5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/lib/components/stack-view.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
</HeaderButton>
{/if}
</header>
{:else}
<header class="app-header hidden"></header>
{/if}

<div class="inner-wrapper"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/tool.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
.outer-wrapper :global(header.app-header:first-of-type) {
border-top: unset;
border-top: unset !important;
}
@media (min-width: 920px) {
Expand Down
6 changes: 5 additions & 1 deletion src/routes/qr-generator/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
</script>

<Tool>
<TwoColumnView leftTitle="QR code settings" rightTitle="QR code preview" hasPadding={false}>
<TwoColumnView leftTitle="QR code settings" rightTitle="QR code preview" hasPadding={false} mobileFillBehaviour="top">
<div slot="left" class="fill-to-parent">
<WarningBox message={errorMessage} />

Expand Down Expand Up @@ -266,6 +266,10 @@
flex-direction: column;
}
[slot="left"] :global(textarea) {
min-height: 6em;
}
.columns {
display: flex;
}
Expand Down
8 changes: 8 additions & 0 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,14 @@ input[type="date"] {
height: 100%;
}

.fill-to-parent {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}

.cm-scroller {
font-family: var(--font-monospace) !important;
}
Expand Down

0 comments on commit b8739a5

Please sign in to comment.