Skip to content
Snippets Groups Projects
Unverified Commit 6b25c36d authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Fix more whitespaces

parent 6574e0a0
No related branches found
No related tags found
No related merge requests found
Pipeline #12547 passed
......@@ -142,7 +142,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
],
rowSelectionChanged: (data, rows) => {
if ( data.length > 0 && this.directoriesOnly) {
if (data.length > 0 && this.directoriesOnly) {
this.folderIsSelected = i18n.t('nextcloud-file-picker.load-to-folder');
}
else {
......@@ -273,7 +273,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
console.error(error.message);
// on Error: try to reload with home directory
if (path != "/"){
if (path != "/") {
this.loadDirectory("/");
}
else {
......@@ -329,7 +329,6 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
}
sendDirectory(directory) {
let path;
if (!directory[0])
......@@ -399,7 +398,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
addFolder() {
if (this._('#new-folder').value !== "") {
let folderPath = this.directoryPath + "/" +this._('#new-folder').value;
this.webDavClient.createDirectory(folderPath).then( contents => { this.loadDirectory(this.directoryPath); }).catch(error => {
this.webDavClient.createDirectory(folderPath).then(contents => { this.loadDirectory(this.directoryPath); }).catch(error => {
this.loading = false;
this.statusText = i18n.t('nextcloud-file-picker.webdav-error');
});
......@@ -485,55 +484,55 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
${commonStyles.getGeneralCSS()}
${commonStyles.getButtonCSS()}
${commonStyles.getTextUtilities()}
.block {
margin-bottom: 10px;
}
.force-no-select{
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.nextcloud-header{
margin-bottom: 2rem;
display: inline-grid;
width: 100%;
grid-template-columns: auto auto;
}
.nextcloud-header div button{
justify-self: start;
}
.nextcloud-intro{
text-align: center;
}
.nextcloud-logo{
width: 80px;
justify-self: end;
transition: all 0.5s ease;
margin: auto;
}
.nextcloud-logo-icon{
height: 100%;
}
.nextcloud-logo-sm{
width: 40px;
justify-self: inherit;
margin-right: 70px;
display:none;
}
.m-inherit{
margin: inherit;
}
.wrapper{
width: 100%;
height:100%;
......@@ -543,33 +542,33 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
align-items: center;
position: relative;
}
.wrapper-select{
justify-content: inherit;
}
.select-button{
justify-self: end;
}
.nextcloud-content{
width: 100%;
height: 100%;
overflow-y: auto;
}
.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{
padding-top: 4px;
padding-bottom: 4px;
font-weight: normal
}
.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="asc"] .tabulator-col-content .tabulator-arrow,
.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="none"] .tabulator-col-content .tabulator-arrow,
.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="desc"] .tabulator-col-content .tabulator-arrow{
padding-bottom: 6px;
}
.tabulator .tabulator-header, .tabulator .tabulator-header, .tabulator .tabulator-header .tabulator-col, .tabulator, .tabulator-row .tabulator-cell, .tabulator-row.tabulator-row-even,
.tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover{
background-color: unset;
......@@ -577,72 +576,72 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
color: unset;
border: none;
}
.tabulator-row, .tabulator-row.tabulator-row-even{
background-color: white;
}
.tabulator-row.tabulator-selected:hover, .tabulator-row.tabulator-selected{
background-color: var(--dbp-dark);
color: var(--dbp-light);
}
.tabulator-row.tabulator-selectable:hover{
background-color: #eee;
color: var(--dbp-dark);
}
.tabulator .tabulator-header .tabulator-col .tabulator-col-content{
display: inline-flex;
}
.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="desc"] .tabulator-col-content .tabulator-arrow{
top: 16px;
}
.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="asc"] .tabulator-col-content .tabulator-arrow{
border-top: none;
border-bottom: 4px solid #666;
}
.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="none"] .tabulator-col-content .tabulator-arrow{
border-top: none;
border-bottom: 4px solid #bbb;
}
.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-arrow{
border-left: 4px solid transparent;
border-right: 4px solid transparent;
}
.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="desc"] .tabulator-col-content .tabulator-arrow,
.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="desc"] .tabulator-col-content .tabulator-arrow{
border-top: 4px solid #666;
border-bottom: none;
}
.tabulator-row, .tabulator-row.tabulator-row-even{
padding-top: 10px;
padding-bottom: 10px;
border-top: 1px solid #eee;
}
.tabulator-header{
padding-top: 10px;
padding-bottom: 10px;
}
.nextcloud-nav{
display: flex;
justify-content: space-between;
}
.nextcloud-footer{
background-color: white;
width: 100%;
padding-top: 10px;
}
.nextcloud-footer-grid{
width: 100%;
display: flex;
......@@ -650,45 +649,45 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
flex-direction: row-reverse;
justify-content: space-between;
}
.tabulator .tabulator-tableHolder{
overflow: hidden;
}
.tabulator .tabulator-tableHolder .tabulator-placeholder span{
font-size: inherit;
font-weight: inherit;
color: inherit;
}
.add-folder{
padding-top: 10px;
}
@media only screen
and (orientation: portrait)
and (max-device-width: 765px) {
.nextcloud-nav h2 > a{
font-size: 1.3rem;
}
.nextcloud-nav a{
font-size: 0.9rem;
}
.nextcloud-logo-sm{
display: none;
}
.tabulator .tabulator-tableHolder{
white-space: inherit;
}
.button-wrapper{
justify-self: start;
}
.wrapper{
display: grid;
/*grid-template-areas: "header-l header-r" "content content";
......@@ -698,16 +697,16 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
grid-template-columns: 100%;
grid-template-areas: "content" "footer";
}
.nextcloud-header{
grid-area: header-l;
margin-bottom: 0px;
}
.nextcloud-content, .nextcloud-intro{
grid-area: content;
}
.nextcloud-intro{
/*grid-column-start: header-l-start;
grid-column-end: header-r-end;
......@@ -716,34 +715,32 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
grid-area: content;
text-align: center;
}
.nextcloud-footer{
/*grid-area: header-r;*/
padding-top: 0px;
grid-area: footer;
}
.info-box{
display: none;
}
.nextcloud-footer-grid{
display: flex;
justify-content: end;
justify-content: center;
}
.select-button{
margin: 0px;
}
#new-folder{
width: 86%;
}
}
`;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment