this repo has no description

Properly square avatars and misc overflow fixes

astrra.space 8e1a46d8 99c40b64

verified
+2
src/lib/AccountComponent.svelte
··· 32 32 #accountName { 33 33 margin-left: 10px; 34 34 font-size: 0.9em; 35 + max-width: 80%; 35 36 36 37 /* replace overflow with ellipsis */ 37 38 overflow: hidden; ··· 42 43 width: 50px; 43 44 height: 50px; 44 45 margin: 0px; 46 + object-fit: cover; 45 47 border-right: var(--border-color) 1px solid; 46 48 } 47 49 </style>
+10 -2
src/lib/PostComponent.svelte
··· 222 222 margin-left: 10px; 223 223 font-size: 0.9em; 224 224 text-align: start; 225 - overflow-wrap: break-word; 225 + word-break: break-word; 226 + max-width: 80%; 227 + max-height: 95%; 226 228 overflow: hidden; 229 + align-self: flex-start; 230 + margin-top: auto; 231 + margin-bottom: auto; 227 232 } 228 233 #avatar { 229 - height: 100%; 234 + height: 60px; 235 + width: 60px; 230 236 margin: 0px; 231 237 margin-left: 0px; 238 + overflow: hidden; 239 + object-fit: cover; 232 240 border-right: var(--border-color) 1px solid; 233 241 } 234 242 #carouselContainer {