Skip to content

Commit

Permalink
App menu: Drawer layout full height and logout at the bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
Pleb5 committed Jun 18, 2024
1 parent 21344fc commit 2b364c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
}
</script>

<div class="card p-4 flex-grow md:text-xl">
<div class="card p-4 flex-grow flex flex-col justify-between md:text-xl">
<nav class="list-nav">
<ul>
{#if $currentUser}
Expand Down Expand Up @@ -249,7 +249,10 @@
<span>Feedback</span>
</button>
</li>
<hr class="!my-4" />
</ul>
</nav>
<nav class="list-nav">
<ul>
<li>
<button class="w-full justify-center" on:click={logout}>
<span class="w-6 text-center">
Expand Down
6 changes: 2 additions & 4 deletions apps/satshoot/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@
onMount(async () => {
// ---------------------------- Basic Init ----------------------------
console.log('onMount')
localStorage.debug = 'ndk:*'
if(!$modeCurrent) {
localStorage.setItem('modeCurrent', 'false');
Expand Down Expand Up @@ -322,7 +320,7 @@
$: if ($updated) {
let toastId:string;
const t: ToastSettings = {
message: 'New version of the app just dropped!',
message: 'New version of the app is available!',
autohide: false,
action: {
label: 'Reload',
Expand Down Expand Up @@ -429,7 +427,7 @@
const drawerSettings: DrawerSettings = {
id: $drawerID,
width: 'w-[50vw] sm:w-[40vw] md:w-[30vw]',
height: 'h-[50vh]',
// height: 'h-[50vh]',
position: 'right',
bgDrawer: 'bg-surface-300-600-token',
};
Expand Down
2 changes: 1 addition & 1 deletion apps/satshoot/static/manifest.webmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "SatShoot",
"short_name": "SatShoot",
"description": "Troubleshoot for sats on nostr",
"description": "Troubleshooting for sats on nostr",
"display": "standalone",
"background_color": "#fff",
"start_url": "/",
Expand Down

0 comments on commit 2b364c7

Please sign in to comment.