From 1f92cc4f17debdb6991a7f388f8e313d461744ff Mon Sep 17 00:00:00 2001
From: Zéro~Informatique
Date: Sun, 26 Mar 2023 18:14:13 +0200
Subject: viewer: cannot scroll in text viewer
- Horizontal resize is now available everywhere in LdGallery
- Increased slightly the PlainText font size for easier read
---
viewer/src/views/MainLayout.vue | 8 ++++++
viewer/src/views/item_handlers/PlainTextViewer.vue | 31 ++++++----------------
2 files changed, 16 insertions(+), 23 deletions(-)
diff --git a/viewer/src/views/MainLayout.vue b/viewer/src/views/MainLayout.vue
index 30bfe97..5cac863 100644
--- a/viewer/src/views/MainLayout.vue
+++ b/viewer/src/views/MainLayout.vue
@@ -128,6 +128,14 @@ function validateSpashScreen() {
left: var(--layout-left);
z-index: 3;
overflow-x: hidden;
+
+ // Forbid overflow when resizing.
+ // Necessary for the resize handle to be selectable on qutebrowser.
+ max-width: calc(100% - var(--layout-left) - $scrollbar-width);
+ margin: 0 auto; // Center
+ resize: horizontal;
+ // ---
+
&:focus {
outline: none;
}
diff --git a/viewer/src/views/item_handlers/PlainTextViewer.vue b/viewer/src/views/item_handlers/PlainTextViewer.vue
index 986e0ae..71b5d15 100644
--- a/viewer/src/views/item_handlers/PlainTextViewer.vue
+++ b/viewer/src/views/item_handlers/PlainTextViewer.vue
@@ -19,18 +19,12 @@
-->
-
-
+ v-text="data"
+ />
+