Skip to content

Commit

Permalink
feat: reduce header sizes in calendar modal
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
  • Loading branch information
st3iny committed Jul 23, 2024
1 parent 56004aa commit 3bd39a1
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/components/AppNavigation/EditCalendarModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
<template>
<NcModal v-if="!!calendarsStore.editCalendarModal && calendar" size="normal" @close="closeModal">
<div class="edit-calendar-modal">
<h2>{{ $t('calendar', 'Edit calendar') }}</h2>
<h3 class="edit-calendar-modal__header">
{{ $t('calendar', 'Edit calendar') }}
</h3>

<div class="edit-calendar-modal__name-and-color">
<div class="edit-calendar-modal__name-and-color__color">
Expand All @@ -30,9 +32,9 @@
</NcCheckboxRadioSwitch>
</template>
<template v-if="canBeShared">
<h2 class="edit-calendar-modal__sharing-header">
<h3 class="edit-calendar-modal__sharing-header">
{{ $t('calendar', 'Share calendar') }}
</h2>
</h3>

<div class="edit-calendar-modal__sharing">
<SharingSearch :calendar="calendar" />
Expand Down Expand Up @@ -275,6 +277,16 @@ export default {
display: flex;
flex-direction: column;
&__header {
margin-top: 0;
}

Check warning on line 283 in src/components/AppNavigation/EditCalendarModal.vue

View check run for this annotation

Codecov / codecov/patch

src/components/AppNavigation/EditCalendarModal.vue#L282-L283

Added lines #L282 - L283 were not covered by tests
&__header,
&__sharing-header {
// Same font size the header of NcDialog (no variable available a this point)
font-size: 21px;
}
&__name-and-color {
display: flex;
align-items: center;
Expand Down

0 comments on commit 3bd39a1

Please sign in to comment.