mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
EditIssue: fix "Due date" button style. (#1824)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
parent
e02631a0a6
commit
c746d73a85
@ -31,7 +31,7 @@
|
||||
export let showIcon = true
|
||||
export let shouldShowLabel: boolean = true
|
||||
export let size: 'x-small' | 'small' = 'small'
|
||||
export let kind: 'transparent' | 'primary' = 'primary'
|
||||
export let kind: 'transparent' | 'primary' | 'link' = 'primary'
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
@ -55,10 +55,9 @@
|
||||
</script>
|
||||
|
||||
<button
|
||||
class="datetime-button"
|
||||
class="datetime-button {kind}"
|
||||
class:editable
|
||||
class:dateTimeButtonNoLabel={!shouldShowLabel}
|
||||
class:primary={kind === 'primary'}
|
||||
class:h-6={size === 'small'}
|
||||
class:h-3={size === 'x-small'}
|
||||
class:text-xs={size === 'x-small'}
|
||||
@ -202,6 +201,25 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
&.link {
|
||||
justify-content: flex-start;
|
||||
padding: 0 0.875rem;
|
||||
height: 2rem;
|
||||
border-radius: 0.25rem;
|
||||
|
||||
.btn-icon {
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
&:hover {
|
||||
color: var(--caption-color);
|
||||
background-color: var(--body-color);
|
||||
border-color: var(--divider-color);
|
||||
.btn-icon {
|
||||
color: var(--content-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.time-divider {
|
||||
flex-shrink: 0;
|
||||
margin: 0 0.25rem;
|
||||
|
@ -40,7 +40,7 @@
|
||||
{#if value}
|
||||
<!-- TODO: fix button style and alignment -->
|
||||
<DatePresenter
|
||||
kind="transparent"
|
||||
kind={'link'}
|
||||
value={value.dueDate}
|
||||
icon={iconModifier}
|
||||
editable
|
||||
|
Loading…
Reference in New Issue
Block a user