From 037db071d42d4a7fdb8ed5cf88bc2c37fba4ae93 Mon Sep 17 00:00:00 2001 From: pacien Date: Tue, 19 May 2020 21:04:50 +0200 Subject: viewer/css/global: factorise util classes --- viewer/src/assets/scss/global.scss | 8 ++++++++ viewer/src/components/LdPdfViewer.vue | 10 +++------- viewer/src/components/LdPlainTextViewer.vue | 11 ++--------- 3 files changed, 13 insertions(+), 16 deletions(-) (limited to 'viewer') diff --git a/viewer/src/assets/scss/global.scss b/viewer/src/assets/scss/global.scss index 5d2e6dc..f95a54d 100644 --- a/viewer/src/assets/scss/global.scss +++ b/viewer/src/assets/scss/global.scss @@ -36,6 +36,9 @@ button svg + span { .nowrap { white-space: nowrap; } +.no-scroll { + overflow: hidden; +} .no-scroll-x { overflow-x: hidden; } @@ -51,6 +54,11 @@ button svg + span { align-items: center; } +.fill { + width: 100%; + height: 100%; +} + /** * Class for containers that centers its content vertically and horizontally, * preferably sticking to the container start if the container is smaller than the content. diff --git a/viewer/src/components/LdPdfViewer.vue b/viewer/src/components/LdPdfViewer.vue index 78ff3d2..20055cc 100644 --- a/viewer/src/components/LdPdfViewer.vue +++ b/viewer/src/components/LdPdfViewer.vue @@ -20,9 +20,9 @@