Skip to content

Commit

Permalink
fix(editor): sidebar editor custom header styling
Browse files Browse the repository at this point in the history
CSS styling overrides have to be adjusted after upstream changes.
Ref nextcloud-libraries/nextcloud-vue#5584

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
  • Loading branch information
st3iny committed May 29, 2024
1 parent d5af6fc commit aec306b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 36 deletions.
39 changes: 39 additions & 0 deletions css/app-sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,37 @@
background-position-x: 8px;
}

.app-sidebar-header {
&__action {
margin-top: 0 !important;
max-height: none !important;
flex-wrap: wrap;

div {
flex-shrink: 0;
}
}

&__desc {
// We use our custom header layout for the sidebar editor
height: 0 !important;
padding: 0 !important;
margin: 0 !important;

// But keep the three-dot menu in the front
.app-sidebar-header__menu {
z-index: 1;
}
}

&__description {
flex-direction: column;

// Close button should be aligned with calendar picker (header)
padding-top: 5px;
}
}

.app-sidebar-tab {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -85,6 +116,14 @@
}
}

.app-sidebar-tabs {
// Fix empty content in case of invalid event URLs
.empty-content {
height: 100vh;
padding: 0 20px;
}
}

.property-title-time-picker-loading-placeholder {
width: 100%;

Expand Down
36 changes: 0 additions & 36 deletions src/views/EditSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -689,40 +689,4 @@ export default {
.property-description {
margin-bottom: 10px;
}
:deep {
.app-sidebar-header__action {
margin-top: 0 !important;
max-height: none !important;
flex-wrap: wrap;
div {
flex-shrink: 0;
}
}
.app-sidebar-header__desc {
// We use our custom header layout for the sidebar editor
height: 0 !important;
padding: 0 !important;
margin: 0 !important;
// But keep the three-dot menu in the front
.app-sidebar-header__menu {
z-index: 1;
}
}
.app-sidebar-header__description {
flex-direction: column;
// Close button should be aligned with calendar picker (header)
padding-top: 5px;
}
.empty-content {
height: 100vh;
padding: 0 20px;
}
}
</style>

0 comments on commit aec306b

Please sign in to comment.