Skip to content

Commit

Permalink
Merge pull request #468 from nextcloud/design/rich-workspaces-padding
Browse files Browse the repository at this point in the history
Rich workspaces: Slightly reduce vertical space
  • Loading branch information
ChristophWurst authored Dec 10, 2019
2 parents 25b0630 + 3abe1ba commit f8e33ee
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 17 deletions.
8 changes: 4 additions & 4 deletions js/editor-rich.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/editor-rich.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions js/files.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/files.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions js/public.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/public.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text.js.map

Large diffs are not rendered by default.

17 changes: 15 additions & 2 deletions src/views/RichWorkspace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default {
return
}
this.creating = true
window.FileList.createFile('README.md', { scrollTo: false, animate: false }).then((status, data) => {
window.FileList.createFile('Readme.md', { scrollTo: false, animate: false }).then((status, data) => {
this.getFileInfo()
this.autofocus = true
this.creating = false
Expand All @@ -134,11 +134,18 @@ export default {
#rich-workspace {
padding: 0 60px;
min-height: 90px;
/* Slightly reduce vertical space */
margin-bottom: -24px;
text-align: left;
}

/* For subfolders, where there are no Recommendations */
#rich-workspace:only-child {
margin-bottom: 0;
}

.empty-workspace {
margin-top: 54px;
padding-top: 43px;
color: var(--color-text-maxcontrast);
height: 0;
}
Expand All @@ -165,6 +172,12 @@ export default {
margin: 0;
}

#rich-workspace::v-deep .menubar {
z-index: 50;
/* Slightly reduce vertical space */
margin-bottom: -10px;
}

#rich-workspace::v-deep .menubar .menubar-icons {
margin-left: 0;
}
Expand Down

0 comments on commit f8e33ee

Please sign in to comment.