Skip to content

Commit 266a097

Browse files
committed
fix: исправлены проблемы с видео и cookie consent
- Добавлен preload='none' для видео чтобы не загружалось автоматически - Исправлена ширина cookie consent панели для лучшего отображения
1 parent 988f934 commit 266a097

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/CookieConsent.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ document.addEventListener('DOMContentLoaded', () => {
175175
padding: 1rem 2rem;
176176
border-radius: 0;
177177
max-width: none;
178-
width: 100%;
178+
/* width: 100%; */
179179
text-align: left;
180180
transform: none;
181181
transition: none;

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ import WORKDECOR from '../assets/img/work-decor.webp';
279279
<Image src={VOICEASSISTANT} alt="voice helper" />
280280
</div>
281281
<div class="home-page-voice__info">
282-
<video controls poster="/voice-video-cover.webp">
282+
<video controls preload="none" poster="/voice-video-cover.webp">
283283
<source src={withBase("/video/smart-home-voice.mp4")} type="video/mp4">
284284
Your browser does not support the video tag.
285285
</video>

0 commit comments

Comments
 (0)