From c4d00ac346c1a8f08cbaae42bc36972854e05305 Mon Sep 17 00:00:00 2001 From: Vladiysss <139554971+Vladiysss@users.noreply.github.com> Date: Fri, 20 Feb 2026 23:52:42 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20?= =?UTF-8?q?=D1=81=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B7=D0=B0=D0=B3=D1=80=D1=83?= =?UTF-8?q?=D0=B7=D0=BA=D0=BE=D0=B9=20=D0=BF=D1=80=D0=B8=20=D1=81=D0=BE?= =?UTF-8?q?=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D0=B8=20=D0=B4=D0=BE=D1=81=D0=BA?= =?UTF-8?q?=D0=B8,=20=D0=BD=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88=D0=BE?= =?UTF-8?q?=D0=B5=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=81=D1=82=D0=B8=D0=BB=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/KBBoardsList.js | 3 +- src/css/App.css | 26 +++++++++++++-- src/css/BoardList.css | 3 +- src/css/Header.css | 75 ++++++++++++++++++++++--------------------- 4 files changed, 66 insertions(+), 41 deletions(-) diff --git a/src/KBBoardsList.js b/src/KBBoardsList.js index 92b6673..f981747 100644 --- a/src/KBBoardsList.js +++ b/src/KBBoardsList.js @@ -113,7 +113,8 @@ const KBBoardsList = () => { setTimer(100); }; - const createBoard = async () => { + const createBoard = async (e) => { + e.preventDefault(); try { setLoading(true) const newBoard = { title, description }; diff --git a/src/css/App.css b/src/css/App.css index a80dcb1..0e18f5a 100644 --- a/src/css/App.css +++ b/src/css/App.css @@ -1,3 +1,9 @@ +html, body { + height: 100%; + margin: 0; + padding: 0; +} + .App { text-align: center; } @@ -81,6 +87,13 @@ ul{ padding: 20px; } +.app-container { + height: 100vh; + display: flex; + flex-direction: column; + align-items: center; +} + /* Страница входа */ .login-page { background-color: #1f2430; @@ -101,13 +114,20 @@ ul{ } .page-container { + flex: 1 1 auto; /* растёт и заполняет остаток */ + display: flex; + flex-direction: column; + overflow-x: auto; + box-sizing: border-box; + background-color: #1f2430; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); padding: 20px; - margin: 10px auto; - max-width: 1200px; -} + margin: 10px 0px; + max-width: 99%; + width: 100%; /* Занимает всю доступную ширину */ +} h2 { text-align: center; diff --git a/src/css/BoardList.css b/src/css/BoardList.css index eea37cf..12f9eff 100644 --- a/src/css/BoardList.css +++ b/src/css/BoardList.css @@ -77,9 +77,10 @@ .pagination { background-color: #2b3245; display: flex; + flex-wrap: wrap; + justify-content: center; gap: 8px; margin-top: 16px; - flex-wrap: wrap; padding: 10px; border-radius: 6px; } diff --git a/src/css/Header.css b/src/css/Header.css index a1cea47..5fa538d 100644 --- a/src/css/Header.css +++ b/src/css/Header.css @@ -8,44 +8,47 @@ } .header { - background-color: #1f2430; - padding: 0; - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); - height: 56px; + flex: 0 0; /* не растёт, не сжимается, высота по контенту */ + background-color: #1f2430; + padding: 0; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + height: 56px; + width: 100%; } .header-container { - max-width: 1200px; - margin: 0 auto; - display: flex; - justify-content: space-between; - align-items: center; - padding: 0 1rem; - height: 56px; + max-width: 1200px; + box-sizing: border-box; + padding-left: 20px; + margin: 0 auto; + display: flex; + justify-content: space-between; + align-items: center; + height: 56px; } .logo h1 { - font-family: 'Roboto Regular'; - margin: 0; - font-size: 24px; - color: #CAD1D8; - text-decoration: none; + font-family: 'Roboto Regular'; + margin: 0; + font-size: 24px; + color: #CAD1D8; + text-decoration: none; } h1:hover { - color: white; + color: white; } .logo a { - text-decoration: none; + text-decoration: none; } .nav-list { - opacity: 0; - display: flex; - list-style: none; - margin: 0; - padding: 0; + opacity: 0; + display: flex; + list-style: none; + margin: 0; + padding: 0; } .nav-list.visible { @@ -54,26 +57,26 @@ h1:hover { .nav-list li { - padding: 0 1rem; - height: 56px; - display: flex; - align-items: center; + padding: 0 1rem; + height: 56px; + display: flex; + align-items: center; } .nav-list li:hover { - box-shadow: #08e8de 0px -2px inset; - background-color: rgba(0, 0, 0, 0.25) ; + box-shadow: #08e8de 0px -2px inset; + background-color: rgba(0, 0, 0, 0.25) ; } .nav-list a { - text-decoration: none; - color: #CAD1D8; - display: flex; - align-items: center; - font-size: 18px; - height: 56px; + text-decoration: none; + color: #CAD1D8; + display: flex; + align-items: center; + font-size: 18px; + height: 56px; } .nav-list a:hover { - color: white; + color: white; } \ No newline at end of file