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;
top: 0;
left: 0;
width: 100vw; /* Full viewport width */
height: 100vh; /* Full viewport height */
z-index: -100; /* Place the background behind content */
width: 100%;
height: 100%;
z-index: -100;
}
.height-container {
display: flex;
@@ -53,7 +53,7 @@ h1 {
.article-content {
font-size: 1.2rem;
color: #fff;
line-height: 1.8; /* Improve readability */
line-height: 1.8;
margin-bottom: 30px;
}
@@ -134,15 +134,16 @@ h1 {
}
::ng-deep img {
max-width: 900px;
max-width: calc(90vw - 30px);
padding: 15px;
border-radius: 35px;
height: auto;
box-sizing: border-box;
}
::ng-deep .gallery {
display: grid;
max-width: 900px;
max-width: 90vw;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
margin: auto;
@@ -160,8 +161,8 @@ h1 {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
display: flex;
justify-content: center;