Skip to content

Commit

Permalink
Merge pull request #12875 from nextcloud/fix/top-bar--line-height
Browse files Browse the repository at this point in the history
fix(TopBar): align lines
  • Loading branch information
ShGKme authored Aug 6, 2024
2 parents 0cc3e49 + 3ad15eb commit 9acebc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/CallView/CallView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,8 @@ export default {
#videos {
position: absolute;
width: 100%;
height: calc(100% - 60px);
top: 60px;
height: calc(100% - 50px);
top: 50px;
overflow: hidden;
display: -webkit-box;
display: -moz-box;
Expand Down
7 changes: 3 additions & 4 deletions src/components/TopBar/TopBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -303,15 +303,13 @@ export default {
<style lang="scss" scoped>
.top-bar {
--border-width: 1px;
// hardcoded 1.5 value of line-height for compatibility with older versions
--text-height: calc(1.5 * (var(--default-font-size) + var(--font-size-small, 15px)));
display: flex;
flex-wrap: wrap;
z-index: 10;
gap: 3px;
align-items: center;
justify-content: flex-end;
min-height: calc(2 * var(--default-grid-baseline) + var(--text-height) + var(--border-width));
min-height: calc(var(--border-width) + 2 * (2 * var(--default-grid-baseline)) + var(--default-clickable-area));
padding-block: var(--default-grid-baseline);
// Reserve space for the sidebar toggle button
padding-inline: calc(2 * var(--default-grid-baseline)) calc(2 * var(--default-grid-baseline) + var(--app-sidebar-offset, 0));
Expand Down Expand Up @@ -361,6 +359,8 @@ export default {
justify-content: center;
width: 100%;
overflow: hidden;
// Text is guaranteed to be one line. Make line-height 1.2 to fit top bar
line-height: 1.2;
&--offline {
color: var(--color-text-maxcontrast);
}
Expand All @@ -371,7 +371,6 @@ export default {
text-overflow: ellipsis;
}
.description {
font-size: var(--font-size-small, 15px);
overflow: hidden;
text-overflow: ellipsis;
max-width: fit-content;
Expand Down

0 comments on commit 9acebc2

Please sign in to comment.