From d2470b157f84844539c34adfaf77548069f47bd0 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Sun, 26 Oct 2025 13:29:53 +0400 Subject: feat/frontend: tablet breakpoints (#285) --- frontend/src/components/Sidebar.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'frontend/src/components/Sidebar.tsx') diff --git a/frontend/src/components/Sidebar.tsx b/frontend/src/components/Sidebar.tsx index c45ec27..0a7efa8 100644 --- a/frontend/src/components/Sidebar.tsx +++ b/frontend/src/components/Sidebar.tsx @@ -60,7 +60,7 @@ const Sidebar: React.FC = ({ setToken, profile, setProfile, onUplo setSidebarOpen(false); side.style.width = "320px" btn.forEach((e, i) => { - e.style.width = "310px" + e.style.width = (window.innerWidth > 1024) ? "310px" : "265px" e.style.padding = "0.4em 0 0 11px" setTimeout(() => { span[i].style.opacity = "1" @@ -225,15 +225,15 @@ const Sidebar: React.FC = ({ setToken, profile, setProfile, onUplo ))} {searchData?.players.map((q, index) => - ( - - pfp - {q.user_name} - - ))} + ( + + pfp + {q.user_name} + + ))} -- cgit v1.2.3