From 673802f3046c291d16b0b8946bac77807a5cf789 Mon Sep 17 00:00:00 2001 From: Zakhar Date: Sun, 6 Sep 2026 09:30:32 +0300 Subject: [PATCH] tablet height --- src/App.tsx | 5 +++-- src_static/index.html | 5 +++-- vite.config.ts | 7 +++++++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 343fee3..beb391c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -336,7 +336,7 @@ const Container = styled.main<{$fullHeight: boolean}>` display: flex; width: calc(100% - 40px); max-width: 1228px; - height: 90vh; + height: 90dvh; margin: 40px auto 0; background: ${({ theme }) => theme.colors.white}; border-radius: ${({ theme }) => theme.radius.page}; @@ -345,7 +345,8 @@ const Container = styled.main<{$fullHeight: boolean}>` @media (max-width: 900px) { //flex-direction: column; - height: 90vh; + height: 100dvh; + margin: 0; } ${({ theme }) => theme.media.mobile(css<{$fullHeight: boolean}>` diff --git a/src_static/index.html b/src_static/index.html index 6d22319..73fb7e7 100644 --- a/src_static/index.html +++ b/src_static/index.html @@ -67,7 +67,7 @@ #page_autobasket {} #page_autobasket_content {display: flex;flex-direction: column;gap: 64px;} - #page_autobasket_content_description {text-align: center;} + #page_autobasket_content_description {text-align: center;max-width: 1000px;} #page_autobasket_content_description p {font-size: 24px;color: #4e7067;} #page_autobasket_images {display: flex;flex-direction: row;gap: 20px;justify-content: center;} #page_autobasket_images div {display: flex;flex-direction: column; gap: 16px;max-width: 387px;text-align: center;align-items: center;} @@ -303,6 +303,7 @@

Автокорзина

Вы выбираете, сколько человек в семье, указываете, на сколько дней нужны продукты — и приложение мгновенно
собирает корзину с учётом порций.
На выходе — чёткий список покупок,
разбитый по отделам магазина

+ Попробовать
@@ -414,7 +415,7 @@
© 2026 — info@hvatilo.ru
- Пользовательское соглашение + Политика конфиденциальности
© 2026
diff --git a/vite.config.ts b/vite.config.ts index eb6207a..018927c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,6 +2,7 @@ import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import fs from 'node:fs'; import JavascriptObfuscator from "javascript-obfuscator"; +import lib from "@minify-html/node"; export default defineConfig(({mode}) => ({ plugins: [ @@ -27,6 +28,12 @@ export default defineConfig(({mode}) => ({ fs.writeFileSync('autocart.js', JavascriptObfuscator.obfuscate(fs.readFileSync('dist/autocart.js').toString() .replace('https://local.hvatilo.ru:8055', 'https://hvatilo.ru') ).getObfuscatedCode()); + fs.writeFileSync('index.html', lib.minify(fs.readFileSync('src_static/index.html'), { + minify_css: true, + minify_js: true, + keep_comments: false, + keep_ssi_comments: false, + })); }, }, ],