From 6a79519641e0d6e3e820cac1f5ac15fd82cca364 Mon Sep 17 00:00:00 2001 From: Haocen Xu Date: Mon, 19 Aug 2019 08:46:01 -0400 Subject: [PATCH 1/2] Allow textarea to be resized vertically only --- css/bootstrap/privatebin.css | 3 ++- css/privatebin.css | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/css/bootstrap/privatebin.css b/css/bootstrap/privatebin.css index b2b03ee..2639c3a 100644 --- a/css/bootstrap/privatebin.css +++ b/css/bootstrap/privatebin.css @@ -131,8 +131,9 @@ body.loading { margin-bottom: 10px; } -#message { +#message, .replymessage { font-family: monospace; + resize: vertical; } #nickname { diff --git a/css/privatebin.css b/css/privatebin.css index ef67b9b..074eea6 100644 --- a/css/privatebin.css +++ b/css/privatebin.css @@ -102,6 +102,7 @@ h3.title { padding: 5px; white-space: pre-wrap; font-family: Consolas, "Lucida Console", "DejaVu Sans Mono", Monaco, monospace; + resize: vertical; } #attachmentPreview img { From 649c7aaa78c7cbb4a6aefec2038488eadeeb714e Mon Sep 17 00:00:00 2001 From: Haocen Xu Date: Tue, 20 Aug 2019 11:57:22 -0400 Subject: [PATCH 2/2] Fix bootstrap 3 support for modern high res monitors --- css/bootstrap/privatebin.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/css/bootstrap/privatebin.css b/css/bootstrap/privatebin.css index 2639c3a..6b05938 100644 --- a/css/bootstrap/privatebin.css +++ b/css/bootstrap/privatebin.css @@ -171,3 +171,12 @@ li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { .dark-theme .alert-info .alert-link { color: #fff; } + +/* address 2K or 4K monitors when using bootstrap 3 */ +@media (min-width: 1280px) { + .container { + width: 100%; + padding-left: 4ch; + padding-right: 4ch; + } +}