-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds attachment display for single card, and fixes bind UI
- Loading branch information
Showing
11 changed files
with
251 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<script lang="ts"> | ||
import '@shoelace-style/shoelace/dist/components/drawer/drawer.js'; | ||
import type { v1 as uuidv1 } from "uuid"; | ||
import { getContext } from 'svelte'; | ||
import type { KanDoStore } from './store'; | ||
import CardDetails from "./CardDetails.svelte"; | ||
const { getStore } :any = getContext("store"); | ||
let store: KanDoStore = getStore(); | ||
let cardId:uuidv1 = "" | ||
let dialog | ||
let details: CardDetails | ||
export const open = (id: uuidv1)=>{ | ||
cardId = id | ||
details.updateLatestComment() | ||
dialog.show() | ||
} | ||
export const reset = ()=>{ | ||
dialog.hide() | ||
details.reset() | ||
} | ||
</script> | ||
<sl-drawer class="edit-card" bind:this={dialog} | ||
style="--size:500px" | ||
no-header | ||
on:sl-hide={()=>close()} | ||
> | ||
<CardDetails bind:this={details} cardId={cardId} /> | ||
</sl-drawer> | ||
<style> | ||
.edit-card::part(base) { | ||
height: calc(100vh - 97px); | ||
bottom: 0; | ||
top: initial; | ||
z-index: 150; | ||
} | ||
.edit-card::part(body) { | ||
padding: 0; | ||
} | ||
.edit-card::part(panel) { | ||
box-shadow: 0px 10px 15px rgba(35, 32, 74, 0.2); | ||
} | ||
.edit-card::part(overlay) { | ||
display: none; | ||
} | ||
</style> |
Oops, something went wrong.