Skip to content

Commit

Permalink
ansi-text: Fix on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Jul 7, 2024
1 parent 4f168bc commit 283c761
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/lib/components/stack-view.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
.inner-wrapper.fill {
height: 100%;
flex-grow: 1;
flex-shrink: unset;
}
Expand Down
9 changes: 6 additions & 3 deletions src/routes/ansi-text/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<textarea bind:value={ansiText} />
</StackView>

<StackView title="ANSI Preview" hasPadding={false} bind:isExpanded={previewExpanded}>
<StackView title="ANSI Preview" hasPadding={false} fill bind:isExpanded={previewExpanded}>
<div class="preview-wrapper">
<div class="preview">
{@html converter.toHtml(ansiText)}
Expand Down Expand Up @@ -58,9 +58,12 @@
.preview-wrapper {
background: black;
height: 100%;
overflow: scroll;
position: relative;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.preview {
Expand Down

0 comments on commit 283c761

Please sign in to comment.