From c3d41a32d8306a3f2edfc63eb183615c21902fe8 Mon Sep 17 00:00:00 2001 From: shats Date: Tue, 17 Feb 2026 15:41:26 +0700 Subject: [PATCH] refactor(SettingsPage): enhance sidebar structure and layout for improved navigation and visual consistency --- frontend/src/SettingsPage.jsx | 92 +++++++++++++++++------------------ 1 file changed, 44 insertions(+), 48 deletions(-) diff --git a/frontend/src/SettingsPage.jsx b/frontend/src/SettingsPage.jsx index 603415e..ca2538f 100644 --- a/frontend/src/SettingsPage.jsx +++ b/frontend/src/SettingsPage.jsx @@ -293,58 +293,54 @@ export default function SettingsPage() { } /> -
- {/* Сайдбар навигации — как блок в общем стиле страниц */} -
-
+ {/* Вёрстка как на https://preview.tabler.io/settings.html: одна card, row g-0, col-md-3 border-end + col-md-9 */} +
+
+
-
- - - - setSidebarSearch(e.target.value)} - aria-label="Поиск разделов" - /> +
+ + + + setSidebarSearch(e.target.value)} + aria-label="Поиск разделов" + /> +
+ {sidebarGroupsFiltered.map((group, idx) => ( +
0 ? 'mt-4' : ''}> +

{group.title}

+
+ {group.items.map((section) => { + const Icon = section.icon; + const isActive = activeSection === section.id; + return ( + + ); + })}
- {sidebarGroupsFiltered.map((group, idx) => ( -
0 ? 'mt-4' : ''}> -

{group.title}

-
- {group.items.map((section) => { - const Icon = section.icon; - const isActive = activeSection === section.id; - return ( - - ); - })} -
-
- ))} - {sidebarGroupsFiltered.length === 0 && ( -

Нет подходящих разделов

- )} +
+ ))} + {sidebarGroupsFiltered.length === 0 && ( +

Нет подходящих разделов

+ )}
-
- - {/* Контент раздела — карточка как на других страницах */} -
-
+
{activeSection === 'live-doh' && ( <>