Skip to content

Commit 8ee4d55

Browse files
committed
Better media sizing on About Me
1 parent 2564700 commit 8ee4d55

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

docs/style/procPages/procPages_mainStyle.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
:root {
2+
--aspect-ratio: calc(100vw / 100vh);
23
--inner-before-after-height: 5px;
34
--inner-before-after-margin: 5px;
45
--inner-padding: 5px 0px;

docs/style/procPages/procPages_pageLayout.css

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,23 @@
7575

7676
.procPageContentView{
7777
grid-area: pageContent;
78-
overflow: auto;
78+
overflow-y: auto;
79+
overflow-x: hidden;
7980
max-width: var(--procPage-mobile-width);
8081
}
8182

8283
.procPageVerticalLockContentView{
8384
grid-area: pageContent;
84-
overflow: auto;
85+
overflow-y: auto;
86+
overflow-x: hidden;
8587
/*max-width: var(--procPage-mobile-width);*/
8688
}
8789

8890
.procPageMediaView{
8991
grid-area: media;
9092
height: 100%;
91-
overflow: auto;
93+
overflow-y: auto;
94+
overflow-x: hidden;
9295
/*max-width: var(--procPage-mobile-width);*/
9396
display: grid;
9497
}
@@ -157,7 +160,7 @@
157160
"media"
158161
"pageContent"
159162
"pageAfter";
160-
grid-template-rows: max-content max-content max-content 40% auto max-content;
163+
grid-template-rows: max-content max-content max-content calc(25% + min(40%, 100vw / 3)) auto max-content;
161164
}
162165

163166
/* When there is no Media on a "Triple Layout" page */
@@ -265,7 +268,8 @@
265268
.procPageMediaView{
266269
grid-area: media;
267270
height: 100%;
268-
overflow: auto;
271+
overflow-y: auto;
272+
overflow-x: hidden;
269273
/*max-width: var(--procPage-width);*/
270274
display: grid;
271275
}

0 commit comments

Comments
 (0)