From c384da9df367408c376c5e3dd530d94d03141a5c Mon Sep 17 00:00:00 2001 From: Gubar Nikita Date: Wed, 21 Aug 2024 15:06:03 +0300 Subject: [PATCH] Fix editor text --- .../Modal/Tracker/ModalTicket/ModalTicket.jsx | 4 +++- .../TicketFullScreen/TicketFullScreen.jsx | 3 +++ .../Tracker/TrackerModal/TrackerModal.jsx | 21 +++++++++++-------- .../Tracker/TrackerModal/trackerModal.scss | 10 +++++++++ 4 files changed, 28 insertions(+), 10 deletions(-) diff --git a/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx b/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx index 0c6f64aa..0d2ed2fd 100644 --- a/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx +++ b/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx @@ -726,7 +726,9 @@ export const ModalTiсket = ({ editor={ClassicEditor} data={inputsValue.description} config={{ - toolbar: ["link"], + toolbar: { + shouldNotGroupWhenFull: true + }, removePlugins: [ "CKFinderUploadAdapter", "CKFinder", diff --git a/src/components/Modal/Tracker/TicketFullScreen/TicketFullScreen.jsx b/src/components/Modal/Tracker/TicketFullScreen/TicketFullScreen.jsx index 972b3635..5c10ade5 100644 --- a/src/components/Modal/Tracker/TicketFullScreen/TicketFullScreen.jsx +++ b/src/components/Modal/Tracker/TicketFullScreen/TicketFullScreen.jsx @@ -709,6 +709,9 @@ export const TicketFullScreen = () => { editor={ClassicEditor} data={inputsValue.description} config={{ + toolbar: { + shouldNotGroupWhenFull: true + }, removePlugins: [ "CKFinderUploadAdapter", "CKFinder", diff --git a/src/components/Modal/Tracker/TrackerModal/TrackerModal.jsx b/src/components/Modal/Tracker/TrackerModal/TrackerModal.jsx index a592cfe5..bb4d3b44 100644 --- a/src/components/Modal/Tracker/TrackerModal/TrackerModal.jsx +++ b/src/components/Modal/Tracker/TrackerModal/TrackerModal.jsx @@ -616,15 +616,18 @@ export const TrackerModal = ({ editor={ClassicEditor} data={descriptionTicket} config={{ - toolbar: [ - "heading", - "|", - "bold", - "italic", - "link", - "bulletedList", - "numberedList" - ], + toolbar: { + items: [ + "heading", + "|", + "bold", + "italic", + "link", + "bulletedList", + "numberedList" + ], + shouldNotGroupWhenFull: true + }, removePlugins: ["BlockQuote"], placeholder: "Описание задачи", link: { diff --git a/src/components/Modal/Tracker/TrackerModal/trackerModal.scss b/src/components/Modal/Tracker/TrackerModal/trackerModal.scss index fd7a3677..3db57246 100644 --- a/src/components/Modal/Tracker/TrackerModal/trackerModal.scss +++ b/src/components/Modal/Tracker/TrackerModal/trackerModal.scss @@ -107,6 +107,12 @@ .ck-toolbar { border: none !important; border-radius: 8px 8px 0 0 !important; + + &__items { + @media (max-width: 424px) { + flex-wrap: wrap !important; + } + } } .ck-placeholder { @@ -363,6 +369,10 @@ grid-template-columns: 55% 45%; column-gap: 20px; + @media (max-width: 725px) { + display: block; + } + &__left { display: flex; flex-direction: column;