Skip to content

Commit 7215e50

Browse files
committed
Fixed some cropping issue on desktop for galabal
1 parent 322a999 commit 7215e50

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

module/CommonBundle/Resources/assets/site/less/vtk-homepage-layoutv2.less

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -329,22 +329,31 @@
329329
}
330330

331331
.banner_event_galabal {
332-
@media (min-width: 1000px) {
332+
/* Large screens (desktops) */
333+
@media (min-width: 1200px) {
333334
background-image: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)), url(../img/promo_galabal_2425_v2.jpg);
334335
height: 85vh;
335-
width: 100%;
336-
margin: 0 auto;
336+
max-height: 800px; /* Prevent excessive height on very tall screens */
337+
}
338+
339+
/* Medium screens (laptops) */
340+
@media (min-width: 756px) and (max-width: 1199px) {
341+
background-image: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)), url(../img/promo_galabal_2425_v2.jpg);
342+
height: 70vh;
343+
background-size: cover;
337344
}
338-
@media (max-width: 999.9px) {
345+
346+
/* Small screens (mobile) */
347+
@media (max-width: 755px) {
339348
background-image: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)), url(../img/promo_galabal_2425_mobile_v2.jpg);
340349
background-size: contain;
341-
background-position: center;
342-
height: 60vh; /* Fixed height for consistency */
343-
min-height: 300px; /* Ensures minimum height on smaller screens */
344-
width: 100%;
345-
margin: 0 auto;
350+
height: 60vh;
351+
min-height: 300px;
346352
}
353+
347354
/* Common properties for all screen sizes */
355+
width: 100%;
356+
margin: 0 auto;
348357
background-position: center;
349358
background-repeat: no-repeat;
350359
color: whitesmoke;

0 commit comments

Comments
 (0)