diff --git a/packages/kanban/src/components/Kanban.svelte b/packages/kanban/src/components/Kanban.svelte index 49ab4e8558..2fbd3e9c26 100644 --- a/packages/kanban/src/components/Kanban.svelte +++ b/packages/kanban/src/components/Kanban.svelte @@ -246,11 +246,7 @@ height: 100%; } .card-container { - display: flex; - flex-direction: column; - padding: .5rem 1rem; background-color: var(--board-card-bg-color); - border: 1px solid var(--board-card-bg-color); border-radius: .25rem; user-select: none; @@ -263,7 +259,6 @@ &.dragged { padding: 1rem; background-color: var(--board-bg-color); - border: unset; } } diff --git a/packages/theme/styles/_layouts.scss b/packages/theme/styles/_layouts.scss index e13120e4d2..dae2ebc471 100644 --- a/packages/theme/styles/_layouts.scss +++ b/packages/theme/styles/_layouts.scss @@ -318,9 +318,16 @@ p:last-child { margin-block-end: 0; } .mx-2 { margin: 0 .5rem; } .mx-3 { margin: 0 .75rem; } +.pl-2 { padding-left: .5rem; } +.pl-4 { padding-left: 1rem; } .pr-1 { padding-right: .25rem; } +.pr-2 { padding-right: .5rem; } .pr-4 { padding-right: 1rem; } .pr-24 { padding-right: 6rem; } +.pt-2 { padding-top: .5rem; } +.pt-4 { padding-top: 1rem; } +.pb-2 { padding-bottom: .5rem; } +.pb-4 { padding-bottom: 1rem; } .p-2 { padding: .5rem; } .p-3 { padding: .75rem; } diff --git a/plugins/board-resources/src/components/KanbanCard.svelte b/plugins/board-resources/src/components/KanbanCard.svelte index 53318cafb0..911c174f23 100644 --- a/plugins/board-resources/src/components/KanbanCard.svelte +++ b/plugins/board-resources/src/components/KanbanCard.svelte @@ -33,33 +33,39 @@ function showLead() { showPanel(board.component.EditCard, object._id, object._class, 'middle') } + -
-
-
{object.title}
-
-
-
- +
+
+
+
{object.title}
+
+
+
+ +
+ { + showMenu(evt) + }} + icon={IconMoreH} + size={'small'} /> +
+
+
+
+ {#if (object.attachments ?? 0) > 0} +
+ +
+ {/if} + {#if (object.comments ?? 0) > 0} +
+ +
+ {/if}
- { - showMenu(evt) - }} - icon={IconMoreH} - size={'small'} - /> -
-
-
-
- {#if (object.attachments ?? 0) > 0} -
- {/if} - {#if (object.comments ?? 0) > 0} -
- {/if}
diff --git a/plugins/lead-resources/src/components/KanbanCard.svelte b/plugins/lead-resources/src/components/KanbanCard.svelte index d52a403d7c..312d7fa279 100644 --- a/plugins/lead-resources/src/components/KanbanCard.svelte +++ b/plugins/lead-resources/src/components/KanbanCard.svelte @@ -35,36 +35,42 @@ function showLead() { showPanel(view.component.EditDoc, object._id, object._class, 'full') } + -
-
-
{object.title}
-
-
-
- +
+
+
+
{object.title}
+
+
+
+ +
+ { + showMenu(evt) + }} + icon={IconMoreH} + size={'small'} /> +
+
+
+ {#if object.$lookup?.attachedTo} + + {/if} +
+ {#if (object.attachments ?? 0) > 0} +
+ +
+ {/if} + {#if (object.comments ?? 0) > 0} +
+ +
+ {/if}
- { - showMenu(evt) - }} - icon={IconMoreH} - size={'small'} - /> -
-
-
- {#if object.$lookup?.attachedTo} - - {/if} -
- {#if (object.attachments ?? 0) > 0} -
- {/if} - {#if (object.comments ?? 0) > 0} -
- {/if}
diff --git a/plugins/recruit-resources/src/components/KanbanCard.svelte b/plugins/recruit-resources/src/components/KanbanCard.svelte index 8ec6cb2155..aebeb060f5 100644 --- a/plugins/recruit-resources/src/components/KanbanCard.svelte +++ b/plugins/recruit-resources/src/components/KanbanCard.svelte @@ -28,51 +28,56 @@ export let object: WithLookup export let dragged: boolean - function showCandidate () { + function showCandidate() { showPanel(view.component.EditDoc, object.attachedTo, object.attachedToClass, 'full') } $: todoItems = (object.$lookup?.todoItems as TodoItem[]) ?? [] $: doneTasks = todoItems.filter((it) => it.done) + -
-
- -
-
- {formatName(object.$lookup?.attachedTo?.name ?? '')} +
+
+
+ +
+
+ {formatName(object.$lookup?.attachedTo?.name ?? '')} +
+
{object.$lookup?.attachedTo?.title ?? ''}
-
{object.$lookup?.attachedTo?.title ?? ''}
-
-
- {#if !dragged} -
- -
- - {/if} -
-
-
-
-
- - {#if todoItems.length > 0} - -
- ( {doneTasks?.length}/ {todoItems.length} ) -
-
+
+ {#if !dragged} +
+ +
+ {/if}
- {#if (object.attachments ?? 0) > 0} -
- {/if} - {#if (object.comments ?? 0) > 0} -
- {/if}
- +
+
+
+ + {#if todoItems.length > 0} + +
( {doneTasks?.length}/ {todoItems.length} )
+
+ {/if} +
+ {#if (object.attachments ?? 0) > 0} +
+ +
+ {/if} + {#if (object.comments ?? 0) > 0} +
+ +
+ {/if} +
+ +
diff --git a/plugins/task-resources/src/components/KanbanCard.svelte b/plugins/task-resources/src/components/KanbanCard.svelte index 49eb181ce2..9d62f55134 100644 --- a/plugins/task-resources/src/components/KanbanCard.svelte +++ b/plugins/task-resources/src/components/KanbanCard.svelte @@ -32,43 +32,47 @@ $: todoItems = (object.$lookup?.todoItems as TodoItem[]) ?? [] $: doneTasks = todoItems.filter((it) => it.done) + -
-
- - {#if todoItems.length > 0} - -
- ( {doneTasks?.length}/ {todoItems.length} ) -
-
- {/if} -
-
-
- +
+
+
+ + {#if todoItems.length > 0} + +
( {doneTasks?.length}/ {todoItems.length} )
+
+ {/if}
- { - showMenu(evt) - }} - icon={IconMoreH} - size={'small'} - /> +
+
+ +
+ { + showMenu(evt) + }} + icon={IconMoreH} + size={'small'} /> +
+
+
{object.name}
+ +
+
+ {#if (object.attachments ?? 0) > 0} +
+ +
+ {/if} + {#if (object.comments ?? 0) > 0} +
+ +
+ {/if} +
+
-
{object.name}
- -
-
- {#if (object.attachments ?? 0) > 0} -
- {/if} - {#if (object.comments ?? 0) > 0} -
- {/if} -
- -
diff --git a/plugins/tracker-resources/src/components/issues/Board.svelte b/plugins/tracker-resources/src/components/issues/Board.svelte index d6e8ad4525..4ac9c310a2 100644 --- a/plugins/tracker-resources/src/components/issues/Board.svelte +++ b/plugins/tracker-resources/src/components/issues/Board.svelte @@ -107,7 +107,7 @@ {@const issue = toIssue(object)} -
+
{#if issue.$lookup?.assignee}