Skip to content

Commit

Permalink
refactor: implement dvh for screen height
Browse files Browse the repository at this point in the history
  • Loading branch information
alkrauss48 committed Jul 22, 2023
1 parent 9409080 commit 0aff387
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/components/SettingsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ const go = () => {
>✕</button>
<form
@submit.prevent="go()"
class="h-screen flex flex-col justify-center items-center"
class="h-[100dvh] flex flex-col justify-center items-center"
action=""
method="post"
>
<label for="slidesUrl">Slides URL:</label>
<p class="w-64 mb-8">Enter the URL to your markdown file below, and then click present.</p>
<label for="slidesUrl">URL to your slides:</label>
<textarea
id="slidesUrl"
class="w-64 p-2 my-4 border-solid border-2 border-black"
Expand Down
2 changes: 1 addition & 1 deletion src/components/SlideView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ window.addEventListener('keydown', (event) : void => {
</script>

<template>
<div class="w-full h-screen flex justify-center items-center">
<div class="w-full h-[100dvh] flex justify-center items-center">
<SlideContent :key="content" :content="content" />
<SlideArrows
@next="incrementContent(1)"
Expand Down

0 comments on commit 0aff387

Please sign in to comment.