From c051fc3ce9d988c2959238c50db303b628823665 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 3 Dec 2023 03:21:11 +0200 Subject: [PATCH] Add wrapper for description popouts, make them wider --- public/scripts/chats.js | 8 ++++++-- public/style.css | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/public/scripts/chats.js b/public/scripts/chats.js index 98a8b2942..26a40d90c 100644 --- a/public/scripts/chats.js +++ b/public/scripts/chats.js @@ -386,14 +386,18 @@ jQuery(function () { return; } + const wrapper = document.createElement('div'); + wrapper.classList.add('height100p', 'wide100p', 'flex-container'); + wrapper.classList.add('flexFlowColumn', 'justifyCenter', 'alignitemscenter'); const textarea = document.createElement('textarea'); textarea.value = String(bro.val()); - textarea.classList.add('height100p'); + textarea.classList.add('height100p', 'wide100p'); textarea.oninput = function () { bro.val(textarea.value).trigger('input'); }; + wrapper.appendChild(textarea); - callPopup(textarea, 'text', '', { wide: true, large: true }); + callPopup(wrapper, 'text', '', { wide: true, large: true }); }); $('#file_form_input').on('change', onFileAttach); diff --git a/public/style.css b/public/style.css index d8731096b..c79357667 100644 --- a/public/style.css +++ b/public/style.css @@ -1962,6 +1962,7 @@ grammarly-extension { .wide_dialogue_popup { aspect-ratio: 1 / 1; width: unset !important; + min-width: var(--sheldWidth); } #bulk_tag_popup_holder,