Skip to content

Commit

Permalink
refactor: update UI and remove unused dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Goniszewski <robertgoniszewski@outlook.com>
  • Loading branch information
goniszewski committed Sep 18, 2024
1 parent d95f4d2 commit 25fd283
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"bookmarks-manager",
"svelte",
"sveltekit",
"pocketbase",
"tailwindcss"
],
"trustedDependencies": [
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ $: {
<div class="dropdown dropdown-end z-10">
<div
class="tooltip tooltip-left"
data-tip={`Logged in as ${user.username}${user.isAdmin && ' (admin)'}`}>
data-tip={`Logged in as ${user.username}${user.isAdmin ? ' (admin)' : ''}`}>
<label for="avatar" tabindex="-1" class="avatar placeholder btn btn-circle btn-ghost">
<div
class={`w-10 rounded-full bg-neutral text-neutral-content ${user.isAdmin && 'ring-1 ring-primary'}`}>
Expand Down
4 changes: 1 addition & 3 deletions src/routes/migrate/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ const isMigrationAllowed = $page.data.noUsersFound || !!$page.data.user?.isAdmin
</script>

<div class="indicator">
<span class="badge indicator-item badge-neutral indicator-center indicator-bottom">
preview
</span>
<span class="badge indicator-item badge-neutral indicator-bottom"> preview </span>
<h1 class="mb-2 text-2xl font-bold">Migrate data to new version</h1>
</div>

Expand Down

0 comments on commit 25fd283

Please sign in to comment.