Skip to content

Commit

Permalink
feat: added clear buttons next to loading buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Junk committed Nov 13, 2023
1 parent 98164a3 commit 0dabee3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/lib/feedview/Loader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@
<div class="col">
<div style="display:flex">
<button class="loadbutton" on:click={load}><i class="bx bx-book-open" />View feed</button>
<button
class="clearbutton"
on:click={() => {
url = "";
}}><i class="bx bx-trash" /> Clear</button
>
<input class="url" type="text" bind:value={url} on:keydown={keydown} />
</div>
</div>
Expand All @@ -66,6 +72,12 @@
height: 50px;
font-size: large;
}
.clearbutton {
margin-left: 1rem;
min-width: 120px;
height: 50px;
font-size: large;
}
.bx-book-open {
margin-right: 1rem;
}
Expand Down
14 changes: 13 additions & 1 deletion src/lib/singleview/LoadFromURL.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@
<div class="col">
<div style="display:flex">
<button class="loadbutton" on:click={loads}><i class="bx bx-book-open" />URL</button>
<button
class="clearbutton"
on:click={() => {
URL = "";
}}><i class="bx bx-trash" /> Clear</button
>
<input class="url" type="text" bind:value={URL} on:keydown={keydown} />
</div>
</div>
Expand All @@ -61,7 +67,13 @@
font-weight: bold;
}
.loadbutton {
width: 200px;
min-width: 200px;
height: 50px;
font-size: large;
}
.clearbutton {
margin-left: 1rem;
min-width: 140px;
height: 50px;
font-size: large;
}
Expand Down

0 comments on commit 0dabee3

Please sign in to comment.