From c124d7d13656c2c3b51042345c6af8bdcae786d9 Mon Sep 17 00:00:00 2001 From: Christina Toegl <toegl@tugraz.at> Date: Tue, 22 Mar 2022 15:06:52 +0100 Subject: [PATCH] Fix placeholder css --- packages/file-handling/src/nextcloud-file-picker.js | 2 ++ packages/file-handling/src/tabulator-table-styles.js | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/packages/file-handling/src/nextcloud-file-picker.js b/packages/file-handling/src/nextcloud-file-picker.js index 121404d2..139c1645 100644 --- a/packages/file-handling/src/nextcloud-file-picker.js +++ b/packages/file-handling/src/nextcloud-file-picker.js @@ -12,6 +12,7 @@ import {TabulatorFull as Tabulator} from 'tabulator-tables'; import MicroModal from './micromodal.es'; import {name as pkgName} from './../package.json'; import * as fileHandlingStyles from './styles'; +import * as tabulatorStyles from './tabulator-table-styles'; import {encrypt, decrypt, parseJwt} from './crypto.js'; /** @@ -2410,6 +2411,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) { ${commonStyles.getModalDialogCSS()} ${commonStyles.getRadioAndCheckboxCss()} ${fileHandlingStyles.getFileHandlingCss()} + ${tabulatorStyles.getTabulatorStyles()} #new-folder-row .button { background-color: var(--dbp-success); diff --git a/packages/file-handling/src/tabulator-table-styles.js b/packages/file-handling/src/tabulator-table-styles.js index db8941ba..3b75f481 100644 --- a/packages/file-handling/src/tabulator-table-styles.js +++ b/packages/file-handling/src/tabulator-table-styles.js @@ -36,6 +36,11 @@ export function getTabulatorStyles() { background-color: var(--dbp-background); color: var(--dbp-content); } + + .tabulator-placeholder-contents { + text-align: center; + padding-top: 10px; + } `; } -- GitLab