Skip to content

Commit 5725b8e

Browse files
authored
Merge pull request #6931 from Namanv0509/event-update
update page header for event
2 parents 4d80fa3 + 62ef337 commit 5725b8e

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

src/reusecore/PageHeader/pageHeader.style.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ const PageHeaderWrapper = styled.div`
3030
display: flex;
3131
justify-content: center;
3232
align-items: center;
33-
width: 100%; /* Full width of parent */
34-
max-width: 600px; /* Cap container width */
35-
margin: 0 auto; /* Center container */
36-
padding: 0 1rem; /* Padding for smaller screens */
33+
width: 100%;
34+
max-width: 700px;
35+
margin: 0 auto;
36+
padding: 0 1rem;
3737
3838
img {
3939
margin-top: 0rem;
4040
width: 100%;
41-
max-width: 100%;
42-
max-height: 100%;
43-
height: auto;
41+
max-width: auto;
42+
max-height: auto;
43+
height: 100%;
4444
object-fit: fill;
4545
display: block;
4646
}
@@ -64,23 +64,23 @@ const PageHeaderWrapper = styled.div`
6464
}
6565
}
6666
67-
/* Responsive adjustments */
67+
6868
@media (max-width: 768px) {
6969
.feature-image {
70-
max-width: 90vw; /* Use viewport width for smaller screens */
70+
max-width: 90vw;
7171
padding: 0 0.5rem;
7272
7373
img {
74-
max-width: 100%; /* Fit container */
75-
max-height: 350px; /* Slightly smaller for tablets */
74+
max-width: 100%;
75+
max-height: 350px;
7676
}
7777
}
7878
}
7979
8080
@media (max-width: 480px) {
8181
.feature-image {
8282
img {
83-
max-height: 250px; /* Further reduce for phones */
83+
max-height: 250px;
8484
}
8585
}
8686
}

0 commit comments

Comments
 (0)