Skip to content

Commit

Permalink
🎨 a few responsiveness tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
webcrawls committed Apr 13, 2024
1 parent ccecb9f commit d6b6822
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/lib/TVWrapperViewer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@
border: 2px solid black;
backdrop-filter: blur(4px);
border-radius: 2px;
font-size: 20px;
width: min-content;
height: min-content;
Expand Down Expand Up @@ -192,6 +191,10 @@
font-weight: normal;
}
.text-container p {
font-size: clamp(14px, 3vw, 20px);
}
.hidden {
visibility: hidden;
}
Expand Down
8 changes: 6 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@
}
const centerTv = () => {
let wrapper = document.querySelector(".main-wrapper")
scrollElementIntoView(wrapper)
let wrapper = document.querySelector(".main-wrapper main")
wrapper.scrollIntoView({
behavior: "auto",
block: "center",
inline: "center",
});
}
onMount(() => {
Expand Down
8 changes: 8 additions & 0 deletions static/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ html {
/*width: 100%;*/
/*scroll-snap-align: center;*/
overflow: hidden;
overflow-x: scroll;
overscroll-behavior: none;

display: flex;
width: 100%;
Expand Down Expand Up @@ -352,6 +354,12 @@ main .tv-nav a:hover {
width: 50%
}

@media screen and (max-width: 360px) {
.main-wrapper main {
transform: scale(0.9);
}
}

@media screen and (max-width: 440px) {
footer .footer-container > img {
width: 80px;
Expand Down

0 comments on commit d6b6822

Please sign in to comment.