Skip to content

Commit

Permalink
Use icons for adding, downloading and uploading views in the edit-menu
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl authored and patrickelectric committed Sep 27, 2023
1 parent fd9e6a6 commit 51b5d45
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions src/components/EditMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,16 @@
</TransitionGroup>
</div>
<div class="grow" />
<div class="w-full px-2 mt-3">
<Button
class="flex items-center justify-center w-full h-8 bg-slate-700 mdi mdi-plus hover:bg-slate-500"
@click="addNewView"
/>
</div>
</div>
<div ref="managementContainer" class="flex flex-col items-center justify-center w-full px-2 shrink">
<Button class="flex items-center justify-center w-full h-8 my-1 bg-slate-700 hover:bg-slate-500">
<label class="flex items-center justify-center h-8 overflow-auto cursor-pointer">
<div ref="managementContainer" class="flex items-center justify-center w-full px-2">
<div class="icon-btn mdi mdi-plus" @click="addNewView" />
<div class="icon-btn">
<label class="flex items-center justify-center w-full h-full cursor-pointer">
<input type="file" accept="application/json" hidden @change="(e: Event) => store.importView(e)" />
<p class="overflow-hidden text-ellipsis whitespace-nowrap">Import view</p>
<span class="mdi mdi-upload" />
</label>
</Button>
<Button
class="flex items-center justify-center w-full h-8 my-1 bg-slate-700 hover:bg-slate-500"
@click="store.exportCurrentView"
>
<p class="overflow-hidden text-ellipsis whitespace-nowrap">Export current view</p>
</Button>
</div>
<div class="icon-btn mdi mdi-download" @click="store.exportCurrentView" />
<div />
</div>
<div class="w-full h-px my-2 sm bg-slate-800/40" />
Expand Down

0 comments on commit 51b5d45

Please sign in to comment.