Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: reduce header sizes in calendar modal #6192

Merged
merged 1 commit into from
Jul 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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
Loading