Skip to content

Commit

Permalink
Add close buttons to history & activity views (#1376)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn authored Jan 15, 2025
1 parent df22ca0 commit da83cd0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions frontend/viewer/src/lib/activity/ActivityView.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import {mdiHistory} from '@mdi/js';
import {mdiCloseCircle, mdiHistory} from '@mdi/js';
import {
cls,
DurationUnits,
Expand Down Expand Up @@ -51,7 +51,10 @@
</div>
</Button>
<Dialog {open} on:close={toggleOff} {loading} persistent={loading} class="w-[700px]">
<div slot="title">Activity</div>
<div slot="title">
Activity
<Button on:click={toggleOff} icon={mdiCloseCircle} class="float-end" rounded="full"></Button>
</div>
<div class="m-6 grid gap-x-6 h-[50vh]" style="grid-template-columns: auto 4fr">
<div class="flex flex-col gap-4 overflow-y-auto">
<div class="border rounded-md">
Expand Down
7 changes: 5 additions & 2 deletions frontend/viewer/src/lib/history/HistoryView.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import {mdiHistory} from '@mdi/js';
import {mdiCloseCircle, mdiHistory} from '@mdi/js';
import {Button, cls, Dialog, Duration, DurationUnits, InfiniteScroll, ListItem, Toggle} from 'svelte-ux';
import EntryEditor from '../entry-editor/object-editors/EntryEditor.svelte';
import SenseEditor from '../entry-editor/object-editors/SenseEditor.svelte';
Expand Down Expand Up @@ -35,7 +35,10 @@
</div>
</Button>
<Dialog {open} on:close={toggleOff} {loading} persistent={loading} class="w-[700px]">
<div slot="title">History</div>
<div slot="title">
History
<Button on:click={toggleOff} icon={mdiCloseCircle} class="float-end" rounded="full"></Button>
</div>
<div class="m-6 grid gap-x-6 h-[50vh]" style="grid-template-columns: auto 4fr;">

<div class="flex flex-col gap-4 overflow-y-auto">
Expand Down

0 comments on commit da83cd0

Please sign in to comment.