From 2777e9b0088c03eeab5fefb5b6f03be69045a8a9 Mon Sep 17 00:00:00 2001 From: aurinex Date: Mon, 29 Dec 2025 00:04:23 +0500 Subject: [PATCH] =?UTF-8?q?minor=20redesign=20shop(=D0=B7=D0=B0=D0=B2?= =?UTF-8?q?=D1=82=D1=80=D0=B0=20=D0=B4=D0=BE=D0=B4=D0=B5=D0=BB=D0=B0=D1=8E?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/components/BonusShopItem.tsx | 2 +- src/renderer/pages/Shop.tsx | 336 +++++++++++----------- 2 files changed, 164 insertions(+), 174 deletions(-) diff --git a/src/renderer/components/BonusShopItem.tsx b/src/renderer/components/BonusShopItem.tsx index ff32526..ac7cc16 100644 --- a/src/renderer/components/BonusShopItem.tsx +++ b/src/renderer/components/BonusShopItem.tsx @@ -82,7 +82,7 @@ export const BonusShopItem: React.FC = ({ sx={{ position: 'relative', width: '100%', - maxWidth: 220, + maxWidth: '27.5vw', height: 440, display: 'flex', flexDirection: 'column', diff --git a/src/renderer/pages/Shop.tsx b/src/renderer/pages/Shop.tsx index b03061c..108c7b7 100644 --- a/src/renderer/pages/Shop.tsx +++ b/src/renderer/pages/Shop.tsx @@ -58,6 +58,7 @@ import { getNotifPositionFromSettings, } from '../utils/notifications'; import { translateServer } from '../utils/serverTranslator'; +import { Server } from 'http'; interface TabPanelProps { children?: React.ReactNode; @@ -70,7 +71,7 @@ function TabPanel(props: TabPanelProps) { return ( ); } @@ -577,11 +578,11 @@ export default function Shop() { flexDirection: 'column', width: '100%', height: '100%', - gap: '2vw', overflow: 'auto', - paddingBottom: '5vw', - paddingLeft: '2.5vw', + paddingBottom: '2w', + paddingLeft: '7vw', paddingRight: '1.5vw', + gap: '2vw', }} > - {['Прокачка', 'Кейсы', 'Плащи', 'Предметы/пакости'].map((label) => ( + {['Прокачка', 'Кейсы', 'Плащи', 'Предметы'].map((label) => ( - Прокачка - + */} {bonusesLoading ? ( - + {caseServers.length > 1 ? ( + - Кейсы + Выберите сервер: - {caseServers.length > 0 && ( - + - setSelectedCaseServerIp(String(e.target.value)) - } - MenuProps={{ - PaperProps: { - sx: { - mt: 1, - bgcolor: 'rgba(10,10,20,0.96)', - border: '1px solid rgba(255,255,255,0.10)', - borderRadius: '1vw', - backdropFilter: 'blur(14px)', - - '& .MuiMenuItem-root': { - color: 'rgba(255,255,255,0.9)', - fontFamily: 'Benzin-Bold', - fontSize: '1.1vw', - }, - '& .MuiMenuItem-root.Mui-selected': { - backgroundColor: 'rgba(242,113,33,0.18)', - }, - '& .MuiMenuItem-root:hover': { - backgroundColor: 'rgba(233,64,205,0.14)', - }, - }, - }, - }} - > - {caseServers.map((ip) => ( - - {translateServer(`Server ${ip}`)} - - ))} - - - - // - // - // Сервер - // - // - // - )} + {caseServers.map((ip) => ( + + {translateServer(`Server ${ip}`)} + + ))} + + + ) : ( + + + Сервер: + + + {caseServers.map((ip) => ( + + {translateServer(`Server ${ip}`)} + + ))} + + + )} {casesLoading ? (