Skip to content

Commit

Permalink
What's with all this math
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Dec 5, 2023
1 parent 5be3e22 commit 8009a8d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/status.css
Original file line number Diff line number Diff line change
Expand Up @@ -714,11 +714,14 @@
}
.status.medium .content ~ * .media-container:is(.media-eq2, .media-gt2),
.status.medium .content ~ .media-container:is(.media-eq2, .media-gt2) {
/* 50px = avatar size */
margin-left: calc(-1 * ((50px / 2)));
/*
50px = avatar size
12px = gap
outer padding = 16px
gap = 12px
so... 16 - 12 = 4
*/
margin-left: calc(-1 * ((50px / 2)));
margin-right: -4px;
}
.status.large :is(.media-container, .media-container.media-gt2) {
height: auto;
Expand Down

0 comments on commit 8009a8d

Please sign in to comment.