Fixed mobile article layout

This commit is contained in:
itzMiney committed 2025-08-18 22:07:37 +02:00
1 parent 6986c67494
commit 94afa2bbfe
1 file changed
+9 -8
@@ -14,9 +14,9 @@
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
width: 100vw; /* Full viewport width */ width: 100%;
height: 100vh; /* Full viewport height */ height: 100%;
z-index: -100; /* Place the background behind content */ z-index: -100;
} }
.height-container { .height-container {
display: flex; display: flex;
@@ -53,7 +53,7 @@ h1 {
.article-content { .article-content {
font-size: 1.2rem; font-size: 1.2rem;
color: #fff; color: #fff;
line-height: 1.8; /* Improve readability */ line-height: 1.8;
margin-bottom: 30px; margin-bottom: 30px;
} }
@@ -134,15 +134,16 @@ h1 {
} }
::ng-deep img { ::ng-deep img {
max-width: 900px; max-width: calc(90vw - 30px);
padding: 15px; padding: 15px;
border-radius: 35px; border-radius: 35px;
height: auto; height: auto;
box-sizing: border-box;
} }
::ng-deep .gallery { ::ng-deep .gallery {
display: grid; display: grid;
max-width: 900px; max-width: 90vw;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
gap: 15px; gap: 15px;
margin: auto; margin: auto;
@@ -160,8 +161,8 @@ h1 {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
width: 100vw; width: 100%;
height: 100vh; height: 100%;
background: rgba(0,0,0,0.5); background: rgba(0,0,0,0.5);
display: flex; display: flex;
justify-content: center; justify-content: center;