Skip to content

Commit

Permalink
fix: 🎨 more styling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tobycm committed Jun 2, 2024
1 parent 193fa78 commit 063f37f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
}

input[type="checkbox"] {
width: 2.5vh;
height: 2.5vh;
width: 3vh;
height: 3vh;
}

.avatar {
Expand Down
8 changes: 5 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,11 @@ <h1>Random Issue Picker</h1>

<br />

<button style="margin-top: 2vh" onclick="openRandomIssue()">Pick random issue</button>
<input type="checkbox" id="openInNewTab" onchange="localStorage.setItem('openInNewTab', this.checked)" />
<label for="openInNewTab">Open in new tab</label>
<div style="display: flex; align-items: center; margin-top: 2vh">
<button onclick="openRandomIssue()">Pick random issue</button>
<input style="margin: 0 0 0 2vw" type="checkbox" id="openInNewTab" onchange="localStorage.setItem('openInNewTab', this.checked)" />
<label style="margin: 0 0 0 1vw" for="openInNewTab">Open in new tab</label>
</div>

<script>
if (localStorage.getItem("openInNewTab") === "true") document.getElementById("openInNewTab").checked = true;
Expand Down

0 comments on commit 063f37f

Please sign in to comment.