Skip to content

Commit

Permalink
Merge pull request #3256 from nextcloud/fix/pixel-perfect-app-navigat…
Browse files Browse the repository at this point in the history
…ion-settings

Make app navigation settings pixel perfect-ish
  • Loading branch information
PVince81 authored Sep 15, 2022
2 parents 0578fc5 + d52e85d commit b83c16d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/assets/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ $breakpoint-mobile: 1024px;

// top-bar spacing
$topbar-margin: 4px;

// navigation spacing
$app-navigation-settings-margin: 3px;
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ export default {
<style lang="scss" scoped>
#app-settings {
margin-top: auto;
padding: calc(var(--default-grid-baseline, 4px) * 2);
padding: $app-navigation-settings-margin;
&__header {
box-sizing: border-box;
margin: 0 $app-navigation-settings-margin $app-navigation-settings-margin $app-navigation-settings-margin;
.settings-button {
display: flex;
Expand Down Expand Up @@ -132,6 +133,10 @@ export default {
&__content {
display: block;
padding: 10px;
/* prevent scrolled contents from stopping too early */
margin-bottom: -$app-navigation-settings-margin;
/* restrict height of settings and make scrollable */
max-height: 300px;
overflow-y: auto;
Expand Down

0 comments on commit b83c16d

Please sign in to comment.