fix(rtl): task add input layout
This commit is contained in:
parent
8fce55753c
commit
450e49f586
|
|
@ -348,11 +348,6 @@ onBeforeUnmount(() => {
|
|||
box-shadow: none;
|
||||
}
|
||||
|
||||
.control.has-icons-left .icon,
|
||||
.control.has-icons-right .icon {
|
||||
transition: all $transition;
|
||||
}
|
||||
|
||||
:deep(.single-task) {
|
||||
.handle {
|
||||
opacity: 1;
|
||||
|
|
|
|||
|
|
@ -3,14 +3,17 @@
|
|||
ref="taskAdd"
|
||||
class="task-add"
|
||||
>
|
||||
<div class="add-task__field field is-grouped">
|
||||
<p class="control has-icons-left has-icons-right is-expanded">
|
||||
<div class="add-task__field field">
|
||||
<p class="control task-input-wrapper">
|
||||
<label
|
||||
class="is-sr-only"
|
||||
:for="textareaId"
|
||||
>
|
||||
{{ $t('project.list.addPlaceholder') }}
|
||||
</label>
|
||||
<span class="icon is-small task-icon">
|
||||
<Icon icon="tasks" />
|
||||
</span>
|
||||
<textarea
|
||||
:id="textareaId"
|
||||
ref="newTaskInput"
|
||||
|
|
@ -23,10 +26,9 @@
|
|||
@keydown="resetEmptyTitleError"
|
||||
@keydown.enter="handleEnter"
|
||||
/>
|
||||
<span class="icon is-small is-left">
|
||||
<Icon icon="tasks" />
|
||||
</span>
|
||||
<QuickAddMagic :highlight-hint-icon="taskAddHovered" />
|
||||
<QuickAddMagic
|
||||
:highlight-hint-icon="taskAddHovered"
|
||||
/>
|
||||
</p>
|
||||
<p class="control">
|
||||
<XButton
|
||||
|
|
@ -288,6 +290,45 @@ defineExpose({
|
|||
margin-block-end: 0;
|
||||
}
|
||||
|
||||
.task-add .add-task__field {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
gap: .75rem;
|
||||
|
||||
.control {
|
||||
flex-shrink: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.task-input-wrapper {
|
||||
position: relative;
|
||||
flex-shrink: 1;
|
||||
flex-grow: 1;
|
||||
|
||||
textarea {
|
||||
padding-inline: 2.5rem;
|
||||
}
|
||||
|
||||
.icon {
|
||||
color: var(--grey-300);
|
||||
}
|
||||
|
||||
.task-icon,
|
||||
:deep(.quick-add-magic-trigger-btn) {
|
||||
position: absolute;
|
||||
inset-block-start: .75rem;
|
||||
}
|
||||
|
||||
:deep(.quick-add-magic-trigger-btn) {
|
||||
inset-inline-end: .75rem;
|
||||
}
|
||||
|
||||
.task-icon {
|
||||
inset-inline-start: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.add-task-button {
|
||||
height: 100% !important;
|
||||
|
||||
|
|
@ -313,9 +354,9 @@ defineExpose({
|
|||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.control.has-icons-left .icon,
|
||||
.control.has-icons-right .icon {
|
||||
.control .icon {
|
||||
transition: all $transition;
|
||||
z-index: 4;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<template v-if="mode !== 'disabled' && prefixes !== undefined">
|
||||
<BaseButton
|
||||
v-tooltip="$t('task.quickAddMagic.hint')"
|
||||
class="icon is-small show-helper-text"
|
||||
class="icon is-small show-helper-text quick-add-magic-trigger-btn"
|
||||
:aria-label="$t('task.quickAddMagic.hint')"
|
||||
:class="{'is-highlighted': highlightHintIcon}"
|
||||
@click="() => visible = true"
|
||||
|
|
|
|||
|
|
@ -60,11 +60,6 @@
|
|||
height: 100%;
|
||||
}
|
||||
|
||||
.control.has-icons-left .icon,
|
||||
.control.has-icons-right .icon {
|
||||
z-index: 4;
|
||||
}
|
||||
|
||||
// Buttons icons
|
||||
.button .icon.is-small {
|
||||
margin-inline-end: 0.05rem !important;
|
||||
|
|
|
|||
Loading…
Reference in New Issue