mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-15 12:55:59 +00:00
Updated ToDoElement layout (#5330)
Signed-off-by: Alexander Platov <alexander.platov@hardcoreeng.com>
This commit is contained in:
parent
b7ab71c9a5
commit
fb40b9b703
@ -591,10 +591,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.hulyToDoLine-statusPriority {
|
||||
display: flex;
|
||||
gap: var(--spacing-0_25);
|
||||
}
|
||||
.hulyToDoLine-statusPriority,
|
||||
.hulyToDoLine-dragbox,
|
||||
.hulyToDoLine-checkbox {
|
||||
display: flex;
|
||||
@ -602,8 +599,7 @@
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.hulyToDoLine-dragbox {
|
||||
position: relative;
|
||||
margin-right: var(--spacing-0_25);
|
||||
display: none;
|
||||
padding: 0;
|
||||
width: var(--global-min-Size);
|
||||
height: var(--global-min-Size);
|
||||
@ -611,28 +607,28 @@
|
||||
border: none;
|
||||
outline: none;
|
||||
cursor: grab;
|
||||
}
|
||||
.hulyToDoLine-statusPriority {
|
||||
position: relative;
|
||||
margin-right: var(--spacing-0_25);
|
||||
padding-top: var(--spacing-0_5);
|
||||
min-width: var(--global-min-Size);
|
||||
|
||||
&.isNew::after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
top: var(--spacing-0_75);
|
||||
right: var(--spacing-0_5);
|
||||
top: var(--spacing-1_25);
|
||||
right: calc(-1 * var(--spacing-0_75));
|
||||
width: var(--spacing-0_5);
|
||||
height: var(--spacing-0_5);
|
||||
background-color: var(--global-primary-LinkColor);
|
||||
border-radius: 50%;
|
||||
}
|
||||
svg {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
.hulyToDoLine-checkbox {
|
||||
display: none;
|
||||
width: var(--global-extra-small-Size);
|
||||
height: var(--global-extra-small-Size);
|
||||
|
||||
&.updating {
|
||||
padding-top: var(--spacing-0_5);
|
||||
}
|
||||
}
|
||||
.hulyToDoLine-top-align {
|
||||
color: var(--global-primary-TextColor);
|
||||
@ -677,24 +673,21 @@
|
||||
&:hover {
|
||||
background-color: var(--global-surface-01-hover-BackgroundColor);
|
||||
|
||||
.hulyToDoLine-dragbox {
|
||||
&.isNew::after {
|
||||
content: none;
|
||||
}
|
||||
svg {
|
||||
visibility: visible;
|
||||
}
|
||||
.priority-container {
|
||||
display: none;
|
||||
}
|
||||
.hulyToDoLine-dragbox,
|
||||
.hulyToDoLine-checkbox {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
&.isDrag {
|
||||
.priority-container {
|
||||
display: flex;
|
||||
}
|
||||
.hulyToDoLine-dragbox {
|
||||
&.isNew::after {
|
||||
content: '';
|
||||
}
|
||||
svg {
|
||||
visibility: hidden;
|
||||
}
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -77,20 +77,15 @@
|
||||
}}
|
||||
>
|
||||
<div class="flex-row-top flex-grow flex-gap-2">
|
||||
<div class="flex-row-center flex-no-shrink">
|
||||
<button class="hulyToDoLine-dragbox" class:isNew on:contextmenu={onMenuClick}>
|
||||
<Icon icon={IconMoreV2} size={'small'} />
|
||||
</button>
|
||||
<div class="hulyToDoLine-statusPriority">
|
||||
<div class="hulyToDoLine-checkbox" class:updating>
|
||||
{#if updating !== undefined}
|
||||
<Spinner size={'small'} />
|
||||
{:else}
|
||||
<ToDoCheckbox checked={isDone} priority={todo.priority} on:value={markDone} />
|
||||
{/if}
|
||||
</div>
|
||||
<div class="hulyToDoLine-statusPriority" class:isNew>
|
||||
{#if updating !== undefined}
|
||||
<Spinner size={'small'} />
|
||||
{:else}
|
||||
<button class="hulyToDoLine-dragbox" on:contextmenu={onMenuClick}>
|
||||
<Icon icon={IconMoreV2} size={'small'} />
|
||||
</button>
|
||||
<ToDoPriorityPresenter value={todo.priority} muted={isDone} />
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<WorkItemPresenter {todo} kind={'todo-line'} withoutSpace />
|
||||
<div class="hulyToDoLine-title hulyToDoLine-top-align top-12 text-left font-regular-14 overflow-label">
|
||||
@ -117,4 +112,7 @@
|
||||
</span>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="hulyToDoLine-checkbox" class:updating>
|
||||
<ToDoCheckbox checked={isDone} priority={todo.priority} on:value={markDone} />
|
||||
</div>
|
||||
</button>
|
||||
|
@ -26,7 +26,7 @@
|
||||
</script>
|
||||
|
||||
{#if value !== ToDoPriority.NoPriority}
|
||||
<div class="flex-center flex-gap-1-5">
|
||||
<div class="priority-container flex-center flex-gap-1-5">
|
||||
<Priority {value} {muted} />
|
||||
{#if showLabel}
|
||||
<span class="priority-label font-medium-12" style:color>
|
||||
|
@ -236,7 +236,7 @@ export class PlanningPage extends CalendarPage {
|
||||
await this.page
|
||||
.locator('button.hulyToDoLine-container div[class$="overflow-label"]', { hasText: toDoName })
|
||||
.locator('xpath=..')
|
||||
.locator('div.flex-row-center button.hulyToDoLine-dragbox')
|
||||
.locator('div.hulyToDoLine-statusPriority button.hulyToDoLine-dragbox')
|
||||
.click({ button: 'right' })
|
||||
await this.buttonMenuDelete.click()
|
||||
await this.pressYesDeletePopup(this.page)
|
||||
@ -246,7 +246,7 @@ export class PlanningPage extends CalendarPage {
|
||||
await this.page
|
||||
.locator('button.hulyToDoLine-container div[class$="overflow-label"]', { hasText: toDoName })
|
||||
.locator('xpath=..')
|
||||
.locator('div.flex-row-center div.hulyToDoLine-checkbox > label')
|
||||
.locator('div.hulyToDoLine-checkbox > label')
|
||||
.click()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user