Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚗️ Proof of concept: Redesign app-content #33568

Merged
merged 30 commits into from
Sep 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2a4fd29
Proof of concept: Redesign app-content
CarlSchwan Aug 16, 2022
03b9047
More refactoring of app content areas
juliushaertl Aug 20, 2022
062e7df
Expose full page sidebar state to main app content
juliushaertl Aug 23, 2022
68af318
Temporary vue component styles
juliushaertl Aug 23, 2022
e68a58c
Fix settings scrolling
juliushaertl Aug 23, 2022
0667890
Use proper background image variable
juliushaertl Aug 23, 2022
aa847a7
Drop vue specific styles
juliushaertl Aug 23, 2022
0a1353f
Fix indentation
juliushaertl Aug 23, 2022
ff219a7
Fix priority of mobile rules for files app
juliushaertl Aug 23, 2022
e4113b1
Adapt layout to new base css variables
juliushaertl Aug 24, 2022
ac736b2
Do not prevent scaling due to accessibility
juliushaertl Aug 24, 2022
702b0cc
Make scroll areas keyboard focussable
juliushaertl Aug 26, 2022
ac134f5
Restore dashboard layout
juliushaertl Aug 26, 2022
d5c7a3a
Small top border radius on mobile
juliushaertl Aug 27, 2022
76033a1
Adjust server popover style
juliushaertl Aug 27, 2022
5c4ad4e
Give header menus a better maximum height for mobile
juliushaertl Aug 27, 2022
b455b07
Fix some minor styling issues
juliushaertl Aug 29, 2022
5d37564
Fix some styling issues with the new containers
juliushaertl Aug 31, 2022
6bf770e
Fix file list scrolling
juliushaertl Aug 31, 2022
7cc8140
Fix profile page rendering
juliushaertl Aug 31, 2022
d6bd98d
Bump bundled files
juliushaertl Aug 31, 2022
b6a6802
Some more fixes
juliushaertl Aug 31, 2022
6ad600e
Fix jsunit tests
juliushaertl Aug 31, 2022
6dac33e
Adjust theming acceptance tests
juliushaertl Sep 1, 2022
3147585
Fix fallback css variables
juliushaertl Sep 1, 2022
76b0947
Wait for the new user form to be visible
danxuliu Sep 1, 2022
9292523
Maximize browser window before running the tests
danxuliu Sep 1, 2022
4ce02c9
Bump to @nextcloud/vue@7.0.0-beta.0
juliushaertl Sep 1, 2022
5219992
Bump bundles
juliushaertl Sep 1, 2022
00b3089
Bump @nextcloud/calendar-availability-vue to 0.5.0-beta.2
juliushaertl Sep 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/comments/tests/js/filespluginSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('OCA.Comments.FilesPlugin tests', function() {
var testFiles;

beforeEach(function() {
var $content = $('<div id="content"></div>');
var $content = $('<div id="app-content"></div>');
$('#testArea').append($content);
// dummy file list
var $div = $(
Expand All @@ -36,7 +36,7 @@ describe('OCA.Comments.FilesPlugin tests', function() {
'<tbody class="files-fileList"></tbody>' +
'</table>' +
'</div>');
$('#content').append($div);
$('#app-content').append($div);

fileList = new OCA.Files.FileList($div);
OCA.Comments.FilesPlugin.attach(fileList);
Expand Down
35 changes: 30 additions & 5 deletions apps/dashboard/src/DashboardApp.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div id="app-dashboard" :style="backgroundStyle">
<div id="app-dashboard">
<h2>{{ greeting.text }}</h2>
<ul class="statuses">
<div v-for="status in sortedRegisteredStatus"
Expand Down Expand Up @@ -172,7 +172,7 @@ export default {
}

return {
backgroundImage: this.background === 'default' ? 'var(--image-main-background)' : `url(${this.backgroundImage})`,
backgroundImage: this.background === 'default' ? 'var(--image-main-background)' : `url('${this.backgroundImage}')`,
}
},

Expand Down Expand Up @@ -365,10 +365,18 @@ export default {
if (isBackgroundBright) {
document.querySelector('#header').style.setProperty('--primary-invert-if-bright', 'invert(100%)')
document.querySelector('#header').style.setProperty('--color-primary-text', '#000000')
// document.body.removeAttribute('data-theme-dark')
// document.body.setAttribute('data-theme-light', 'true')
} else {
document.querySelector('#header').style.removeProperty('--primary-invert-if-bright')
document.querySelector('#header').style.removeProperty('--color-primary-text')
document.querySelector('#header').style.setProperty('--primary-invert-if-bright', 'no')
document.querySelector('#header').style.setProperty('--color-primary-text', '#ffffff')
// document.body.removeAttribute('data-theme-light')
// document.body.setAttribute('data-theme-dark', 'true')
}

document.documentElement.style.setProperty('--image-main-background', this.backgroundStyle.backgroundImage)
document.querySelector('#header').style.setProperty('--image-main-background', this.backgroundStyle.backgroundImage)
document.querySelector('body').style.setProperty('--image-main-background', this.backgroundStyle.backgroundImage)
},
updateSkipLink() {
// Make sure "Skip to main content" link points to the app content
Expand Down Expand Up @@ -426,7 +434,6 @@ export default {
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
background-color: var(--color-primary);

> h2 {
color: var(--color-primary-text);
Expand Down Expand Up @@ -675,3 +682,21 @@ export default {
}
}
</style>
<style>
html, body {
overflow: auto;
position: static;
height: auto;
background-attachment: fixed;
}

#body-user #header {
position: fixed;
}

#content {
height: auto;
overflow: auto;
position: static !important;;
}
</style>
65 changes: 48 additions & 17 deletions apps/files/css/files.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/files/css/files.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 50 additions & 10 deletions apps/files/css/files.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
thead {
position: -webkit-sticky;
position: sticky;
// header + breadcrumbs
top: variables.$header-height;
// breadcrumbs
top: 44px;
// under breadcrumbs, over file list
z-index: 60;
display: block;
Expand Down Expand Up @@ -307,12 +307,6 @@ table th.column-last, table td.column-last {
position: relative;
/* this can not be just width, both need to be set … table styling */
min-width: 130px;
max-width: 130px;
}

#app-content-files thead,
#app-content-trashbin thead {
top: 94px;
}

#app-content-recent,
Expand All @@ -323,7 +317,9 @@ table th.column-last, table td.column-last {
#app-content-sharinglinks,
#app-content-deletedshares,
#app-content-pendingshares {
margin-top: 22px;
thead {
top: 0;
}
}

table.multiselect thead th {
Expand Down Expand Up @@ -814,6 +810,49 @@ table.dragshadow td.size {
}
}


.files-controls {
box-sizing: border-box;
position: -webkit-sticky;
position: sticky;
height: 54px;
padding: 0;
margin: 0;
background-color: var(--color-main-background-translucent);
z-index: 62; /* must be above the filelist sticky header and texteditor menubar */
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
display: flex;
top: 0;

.actions {
> div,
& {
> .button, button {
box-sizing: border-box;
display: inline-block;
display: flex;
height: 44px;
width: 44px;
padding: 9px; // width - border - icon width = 18px
align-items: center;
justify-content: center;
}
.button.hidden {
display: none;
}
}
}
}

/* position controls for apps with app-navigation */

.viewer-mode #app-navigation + #app-content .files-controls {
left: 0;
}

.files-filestable .filename .action .icon,
.files-filestable .selectedActions a .icon,
.files-filestable .filename .favorite-mark .icon,
Expand Down Expand Up @@ -1197,7 +1236,8 @@ table.dragshadow td.size {
padding: 22px;
opacity: .5;
position: fixed;
right: 0;
right: calc(var(--default-grid-baseline) * 4);
top: calc(var(--header-height) + var(--default-grid-baseline));
z-index: 100;

&:hover,
Expand Down
Loading