mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +03:00
fix: create event popup improvements (#4850)
Signed-off-by: Eduard Aksamitov <e@euaaaio.ru>
This commit is contained in:
parent
1df662e2a0
commit
c56dd34c7f
@ -71,6 +71,9 @@
|
|||||||
}
|
}
|
||||||
.default, .ghost { padding: 0.3125rem 0.5rem; }
|
.default, .ghost { padding: 0.3125rem 0.5rem; }
|
||||||
.default-large, .ghost-large { padding: 0.4375rem 0.5rem; }
|
.default-large, .ghost-large { padding: 0.4375rem 0.5rem; }
|
||||||
|
.ghost-large {
|
||||||
|
color: var(--theme-caption-color);
|
||||||
|
}
|
||||||
.default, .ghost, .default-large, .ghost-large {
|
.default, .ghost, .default-large, .ghost-large {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
line-height: 1.25rem;
|
line-height: 1.25rem;
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
let edits: IEdits[] = editsType.map((edit) => {
|
let edits: IEdits[] = editsType.map((edit) => {
|
||||||
return { id: edit, value: -1 }
|
return { id: edit, value: -1 }
|
||||||
})
|
})
|
||||||
let selected: TEdits | null = 'hour'
|
let selected: TEdits | null = null
|
||||||
let startTyping: boolean = false
|
let startTyping: boolean = false
|
||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
"ThisEvent": "This event",
|
"ThisEvent": "This event",
|
||||||
"ThisAndNext": "This and following events",
|
"ThisAndNext": "This and following events",
|
||||||
"AllEvents": "All events",
|
"AllEvents": "All events",
|
||||||
"NewEvent": "New event",
|
"EventTitlePlaceholder": "Event title",
|
||||||
"TimeZone": "Time zone",
|
"TimeZone": "Time zone",
|
||||||
"Repeat": "Repeat",
|
"Repeat": "Repeat",
|
||||||
"On": "On",
|
"On": "On",
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
"ThisEvent": "Este evento",
|
"ThisEvent": "Este evento",
|
||||||
"ThisAndNext": "Este y los siguientes eventos",
|
"ThisAndNext": "Este y los siguientes eventos",
|
||||||
"AllEvents": "Todos los eventos",
|
"AllEvents": "Todos los eventos",
|
||||||
"NewEvent": "Nuevo evento",
|
"EventTitlePlaceholder": "Título del evento",
|
||||||
"TimeZone": "Zona horaria",
|
"TimeZone": "Zona horaria",
|
||||||
"Repeat": "Repetir",
|
"Repeat": "Repetir",
|
||||||
"On": "En",
|
"On": "En",
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
"ThisEvent": "Este evento",
|
"ThisEvent": "Este evento",
|
||||||
"ThisAndNext": "Este e os seguintes eventos",
|
"ThisAndNext": "Este e os seguintes eventos",
|
||||||
"AllEvents": "Todos os eventos",
|
"AllEvents": "Todos os eventos",
|
||||||
"NewEvent": "Novo evento",
|
"EventTitlePlaceholder": "Título do evento",
|
||||||
"TimeZone": "Fuso horário",
|
"TimeZone": "Fuso horário",
|
||||||
"Repeat": "Repetir",
|
"Repeat": "Repetir",
|
||||||
"On": "Em",
|
"On": "Em",
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
"ThisEvent": "Только это событие",
|
"ThisEvent": "Только это событие",
|
||||||
"ThisAndNext": "Это и последующие события",
|
"ThisAndNext": "Это и последующие события",
|
||||||
"AllEvents": "Все события",
|
"AllEvents": "Все события",
|
||||||
"NewEvent": "Новое событие",
|
"EventTitlePlaceholder": "Название события",
|
||||||
"TimeZone": "Часовой пояс",
|
"TimeZone": "Часовой пояс",
|
||||||
"Repeat": "Повтор",
|
"Repeat": "Повтор",
|
||||||
"On": "В",
|
"On": "В",
|
||||||
|
@ -159,10 +159,11 @@
|
|||||||
<div class="header flex-between">
|
<div class="header flex-between">
|
||||||
<EditBox
|
<EditBox
|
||||||
bind:value={title}
|
bind:value={title}
|
||||||
placeholder={calendar.string.NewEvent}
|
placeholder={calendar.string.EventTitlePlaceholder}
|
||||||
kind={'ghost-large'}
|
kind={'ghost-large'}
|
||||||
fullSize
|
fullSize
|
||||||
focusable
|
focusable
|
||||||
|
autoFocus
|
||||||
focusIndex={10001}
|
focusIndex={10001}
|
||||||
/>
|
/>
|
||||||
<div class="flex-row-center gap-1 flex-no-shrink ml-3">
|
<div class="flex-row-center gap-1 flex-no-shrink ml-3">
|
||||||
|
@ -162,11 +162,12 @@
|
|||||||
<div class="header flex-between">
|
<div class="header flex-between">
|
||||||
<EditBox
|
<EditBox
|
||||||
bind:value={title}
|
bind:value={title}
|
||||||
placeholder={calendar.string.NewEvent}
|
placeholder={calendar.string.EventTitlePlaceholder}
|
||||||
disabled={readOnly}
|
disabled={readOnly}
|
||||||
kind={'ghost-large'}
|
kind={'ghost-large'}
|
||||||
fullSize
|
fullSize
|
||||||
focusable
|
focusable
|
||||||
|
autoFocus
|
||||||
focusIndex={10001}
|
focusIndex={10001}
|
||||||
/>
|
/>
|
||||||
<div class="flex-row-center gap-1 flex-no-shrink ml-3">
|
<div class="flex-row-center gap-1 flex-no-shrink ml-3">
|
||||||
|
@ -50,7 +50,7 @@ export default mergeIds(calendarId, calendar, {
|
|||||||
ThisEvent: '' as IntlString,
|
ThisEvent: '' as IntlString,
|
||||||
ThisAndNext: '' as IntlString,
|
ThisAndNext: '' as IntlString,
|
||||||
AllEvents: '' as IntlString,
|
AllEvents: '' as IntlString,
|
||||||
NewEvent: '' as IntlString,
|
EventTitlePlaceholder: '' as IntlString,
|
||||||
TimeZone: '' as IntlString,
|
TimeZone: '' as IntlString,
|
||||||
Repeat: '' as IntlString,
|
Repeat: '' as IntlString,
|
||||||
Every: '' as IntlString,
|
Every: '' as IntlString,
|
||||||
|
Loading…
Reference in New Issue
Block a user