From c390a0c32720f6afe852bc7a3a3f64c3afe9e401 Mon Sep 17 00:00:00 2001 From: r Date: Fri, 11 Feb 2022 11:18:02 +0000 Subject: Add lists --- static/style.css | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'static') diff --git a/static/style.css b/static/style.css index 4e2a196..10aff68 100644 --- a/static/style.css +++ b/static/style.css @@ -290,6 +290,10 @@ textarea { display: inline; } +.p-0 { + padding: 0; +} + .btn-link { border: none; outline: none; @@ -422,9 +426,6 @@ img.emoji { margin-right: 2px; } -.user-list-container { -} - .user-list-item { overflow: auto; margin: 0 0 12px 0; @@ -441,6 +442,10 @@ img.emoji { overflow: auto; } +.user-list-action { + margin: 0 12px; +} + #settings-form { margin: 8px 0; } -- cgit v1.2.3 From 153f4a492b92c9c25aa3bcb3d8ee1b8a72de6d69 Mon Sep 17 00:00:00 2001 From: r Date: Wed, 30 Mar 2022 17:06:19 +0000 Subject: Set max size for embedded images in profile description --- static/style.css | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'static') diff --git a/static/style.css b/static/style.css index 10aff68..2cb15b0 100644 --- a/static/style.css +++ b/static/style.css @@ -286,6 +286,14 @@ textarea { margin: 0; } +.user-profile-decription img { + height: auto; + width: auto; + max-height: 240px; + max-width: 280px; + object-fit: contain; +} + .d-inline { display: inline; } -- cgit v1.2.3 From c36314fe7fe6ee5fa75b29930214b56c40e8e46d Mon Sep 17 00:00:00 2001 From: r Date: Wed, 30 Mar 2022 17:12:53 +0000 Subject: fluoride: Use target=_blank for user field links --- static/fluoride.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static') diff --git a/static/fluoride.js b/static/fluoride.js index 6f14f86..ddf74c6 100644 --- a/static/fluoride.js +++ b/static/fluoride.js @@ -298,7 +298,7 @@ document.addEventListener("DOMContentLoaded", function() { } } - var links = document.querySelectorAll(".user-profile-decription a"); + var links = document.querySelectorAll(".user-profile-decription a, .user-fields a"); for (var j = 0; j < links.length; j++) { links[j].target = "_blank"; } -- cgit v1.2.3 From 71238ab7bc2bddebf4237af4bcf9eb52b793a185 Mon Sep 17 00:00:00 2001 From: r Date: Wed, 30 Mar 2022 17:38:34 +0000 Subject: fluoride: Use max-width for popup --- static/fluoride.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'static') diff --git a/static/fluoride.js b/static/fluoride.js index ddf74c6..046f6dd 100644 --- a/static/fluoride.js +++ b/static/fluoride.js @@ -149,6 +149,7 @@ function handleReplyToLink(a) { var copy = status.cloneNode(true); copy.id = "reply-to-popup"; var ract = event.target.getBoundingClientRect(); + copy.style["max-width"] = (window.innerWidth - ract.left - 32) + "px"; if (ract.top > window.innerHeight / 2) { copy.style.bottom = (window.innerHeight - window.scrollY - ract.top) + "px"; @@ -180,6 +181,7 @@ function handleReplyLink(a) { var copy = status.cloneNode(true); copy.id = "reply-popup"; var ract = event.target.getBoundingClientRect(); + copy.style["max-width"] = (window.innerWidth - 98) + "px"; if (ract.left > window.innerWidth / 2) { copy.style.right = (window.innerWidth - ract.right - 12) + "px"; -- cgit v1.2.3 From 471701f0294a4327dacc8d99bc1d8ec04ffc1392 Mon Sep 17 00:00:00 2001 From: r Date: Wed, 4 May 2022 15:48:59 +0000 Subject: fluoride: Add support for image.png --- static/fluoride.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'static') diff --git a/static/fluoride.js b/static/fluoride.js index 046f6dd..e6a63ef 100644 --- a/static/fluoride.js +++ b/static/fluoride.js @@ -271,6 +271,20 @@ function handleImgPreview(a) { } } +function onPaste(e) { + if (!e.clipboardData.files) + return; + var fp = document.querySelector("#post-file-picker") + var dt = new DataTransfer(); + for (var i = 0; i < fp.files.length; i++) { + dt.items.add(fp.files[i]); + } + for (var i = 0; i < e.clipboardData.files.length; i++) { + dt.items.add(e.clipboardData.files[i]); + } + fp.files = dt.files; +} + document.addEventListener("DOMContentLoaded", function() { checkCSRFToken(); checkAntiDopamineMode(); @@ -309,6 +323,10 @@ document.addEventListener("DOMContentLoaded", function() { for (var j = 0; j < links.length; j++) { handleImgPreview(links[j]); } + + var pf = document.querySelector(".post-form") + if (pf) + pf.addEventListener("paste", onPaste); }); // @license-end -- cgit v1.2.3 From 1661219ab6e3c12b29d676d57ce452feb81d0dd9 Mon Sep 17 00:00:00 2001 From: r Date: Tue, 10 May 2022 17:34:49 +0000 Subject: Fix CSS inconsistencies --- static/style.css | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'static') diff --git a/static/style.css b/static/style.css index 2cb15b0..19cceab 100644 --- a/static/style.css +++ b/static/style.css @@ -194,11 +194,14 @@ textarea { border-color: #777777; } -.notification-container.favourite .status-container, -.notification-container.reblog .status-container { +.notification-container .status-container { opacity: 0.6; } +.notification-container.mention .status-container { + opacity: unset; +} + .notification-info-text span { vertical-align: middle; } @@ -277,7 +280,8 @@ textarea { margin-top: 2px; } -.user-profile-decription { +.user-profile-decription, +.user-fields { overflow-wrap: break-word; margin: 8px 0; } @@ -366,10 +370,6 @@ a:hover, display: none; } -.post-form-field>* { - vertical-align: middle; -} - .emoji-item-container { width: 220px; display: inline-block; @@ -462,10 +462,6 @@ img.emoji { margin: 4px 0; } -.settings-form-field>* { - vertical-align: middle; -} - #settings-form button[type=submit] { margin-top: 8px; } -- cgit v1.2.3