-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: mobile view + scrollbar fix for public page
- Loading branch information
1 parent
06e6083
commit be92035
Showing
3 changed files
with
36 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,10 +27,11 @@ | |
rel="stylesheet" | ||
href="https://unpkg.com/@highlightjs/[email protected]/styles/default.min.css" | ||
/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<script src="https://unpkg.com/@highlightjs/[email protected]/highlight.min.js"></script> | ||
<script src="https://unpkg.com/@highlightjs/[email protected]/languages/javascript.min.js"></script> | ||
|
||
<script> | ||
<script type="module"> | ||
hljs.highlightAll(); | ||
|
||
window.paramsData = {{params | tojson}}; | ||
|
@@ -52,10 +53,6 @@ | |
padding: 0; | ||
} | ||
|
||
body { | ||
overflow: hidden; | ||
} | ||
|
||
nav { | ||
border-color: var(--brand-color); | ||
} | ||
|
@@ -95,6 +92,10 @@ | |
text-decoration-line: underline; | ||
} | ||
|
||
body { | ||
min-height: 100vh; | ||
} | ||
|
||
main { | ||
font-family: "Maven Pro", sans-serif; | ||
line-height: 1.6; | ||
|
@@ -105,8 +106,6 @@ | |
padding-top: 48px; | ||
gap: 40px; | ||
width: 100vw; | ||
height: 100vh; | ||
overflow: hidden; | ||
} | ||
|
||
.corner-logo { | ||
|
@@ -215,7 +214,11 @@ | |
const rect = targetElement.getBoundingClientRect(); | ||
|
||
// Get the bottom right corner coordinates | ||
const endX = rect.right + 128; | ||
let endX = rect.right + 128; | ||
if (endX > window.innerWidth) { | ||
endX = window.innerWidth - 100; | ||
} | ||
|
||
const endY = rect.bottom + 45; | ||
|
||
// Calculate start point (will be above and to the left of the end point) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters