diff --git a/frontend/src/App.css b/frontend/src/App.css index f72809a..742f336 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -328,6 +328,13 @@ padding-top: 0.375rem; padding-bottom: 0.375rem; } +/* Полные названия в фильтрах (без обрезания), перенос по словам */ +.server-sidebar .list-group-item .text-break, +#server-filters-offcanvas .list-group-item span:first-of-type span { + word-break: break-word; + white-space: normal; + min-width: 0; +} /* Responsive navbar */ @media (max-width: 991.98px) { diff --git a/frontend/src/components/server/ServerSidebar.jsx b/frontend/src/components/server/ServerSidebar.jsx index 71d248a..563782c 100644 --- a/frontend/src/components/server/ServerSidebar.jsx +++ b/frontend/src/components/server/ServerSidebar.jsx @@ -54,9 +54,9 @@ function FilterItem({ label, count, active, onClick, leftAddon }) { className={`list-group-item list-group-item-action d-flex align-items-center justify-content-between py-2 px-3 text-start ${active ? 'active' : ''}`} onClick={onClick} > - + {leftAddon} - {label} + {label} {count}