Skip to content

Commit

Permalink
Merge pull request #6319 from nextcloud/backport/6317/stable5.0
Browse files Browse the repository at this point in the history
[stable5.0] fix(embed): calendar header overlapping and adjust to compact design
  • Loading branch information
st3iny authored Sep 4, 2024
2 parents e24aaa6 + c73279c commit 412d31e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
2 changes: 1 addition & 1 deletion css/app-navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}

.button:only-child {
border-radius: var(--border-radius-pill);
border-radius: var(--border-radius-element);
}

.button:hover,
Expand Down
25 changes: 15 additions & 10 deletions css/public.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@
}

.content.app-calendar.app-calendar-public-embedded {
flex-direction: column;

#embed-header {
position: fixed;
top: 0;
left: 0;
height: 50px;
width: 100%;
padding: calc(var(--default-grid-baseline) * 2);
box-sizing: border-box;
background-color: var(--color-main-background);
border-bottom: 1px solid var(--color-border);
overflow: visible;
z-index: 2000;
display: flex;
align-items: center;
justify-content: space-between;

.embed-header__date-section,
Expand All @@ -39,16 +40,20 @@
min-width: 150px;
}
}

.datepicker-button-section,
.today-button-section,
.view-button-section {
button {
// Header has only one row so the built-in spacing is not needed
margin: 0;
}
}
}

.app-content {
margin-top: 44px;
//position: absolute !important;
//top: 44px;
//left: 0;
//right: 0;
//bottom: 0;
//min-height: unset !important;
// Expand to full height (need to overwrite this because a flex column layout is used here)
flex-basis: auto;
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/components/AppNavigation/EmbedTopNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
<header :id="isWidget? 'widget-header' :'embed-header'" role="banner">
<div :class="isWidget?'widget-header__date-section' :'embed-header__date-section'">
<header :id="isWidget ? 'widget-header' : 'embed-header'" role="banner">
<div :class="isWidget ? 'widget-header__date-section' : 'embed-header__date-section'">
<AppNavigationHeaderDatePicker :is-widget="isWidget" />
<AppNavigationHeaderTodayButton v-if="!isWidget" />
</div>
<div :class="isWidget?'widget-header__views-section' :'embed-header__views-section'">
<div :class="isWidget ? 'widget-header__views-section' : 'embed-header__views-section'">
<AppNavigationHeaderViewButtons :is-widget="isWidget" />
</div>
<!-- TODO have one button per calendar -->
<div v-if="!isWidget" class="widget-header__share-section">
<div v-if="!isWidget" class="embed-header__share-section">
<Actions>
<template #icon>
<Download :size="20" decorative />
Expand Down

0 comments on commit 412d31e

Please sign in to comment.