Skip to content

Commit

Permalink
Attempt css fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jsolly committed Nov 29, 2024
1 parent 820d08a commit 026137e
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1460,6 +1460,11 @@ video {
.container {
display: grid;
grid-template-columns: 1fr;
width: 100%;
max-width: 100%;
padding: 0;
margin: 0;
overflow-x: hidden;
}

header {
Expand All @@ -1474,8 +1479,13 @@ video {
.post-content {
grid-row: 3;
grid-column: 1;
margin-left: 20px;
margin-right: 20px;
margin-left: 10px;
margin-right: 10px;
width: auto;
max-width: calc(100% - 20px);
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
}

.footer {
Expand Down Expand Up @@ -1637,3 +1647,18 @@ video {
display: none;
}
}

/* Add specific handling for very small screens */
@media (max-width: 480px) {
.post-content {
margin-left: 5px;
margin-right: 5px;
max-width: calc(100% - 10px);
}

/* Further reduce any paddings */
.container > * {
padding-left: 5px;
padding-right: 5px;
}
}

0 comments on commit 026137e

Please sign in to comment.