cheogram-www
created pr with
cheogram-www/more-style-tweaks.1
commented
Changes are available at https://tangled.org/mrry.band/cheogram-www more-style-tweaks
commented
Based on the link-previews branch (https://pr.pico.sh/cheogram-www/link-previews)
added cheogram-www/more-style-tweaks.2
1: 0afbc05 ! 1: c4819b3 Add a light background for light mode, with blur
2: a4d26da = 2: 65bd6c9 Design refresh tweaks for mobile
3: fd69e55 = 3: 01373fa Make sure don't have an account link looks right
cmds
checkout latest patchset:
ssh pr.pico.sh pull cheogram-www:more-style-tweaks | git am -3checkout specific patchset revision:
ssh pr.pico.sh pull cheogram-www:more-style-tweaks [rev] | git am -3add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh cheogram-www:more-style-tweaksadd comment to patch request:
ssh pr.pico.sh comment cheogram-www:more-style-tweaks "lgtm!"
Patchset
cheogram-www/more-style-tweaks.2
Design refresh tweaks for mobile
Eric Roberts
2026-11-27T16:38:04Z- smaller sidebar, removing labels, reducing padding - chat list padding reduced to show more - avatar size reduced in sidebar, kept consistent with chat list - avaters vertically centered in chat list and chat headers (applies everywhere, it just wasn't noticeable before)
Diff stat
3 files changed, 63 insertions(+), 9 deletions(-)
Semantic diff summary
0 added,
0 modified,
0 signature changed,
0 removed
across 1 analyzed file
(2 files skipped: unsupported file type)
+55
-6
src/App.scss
#
| ... | ... | @@ -458,7 +458,7 @@ li.MuiListSubheader-root { | |
| 458 | 458 | z-index: -1; | |
| 459 | 459 | pointer-events: none; | |
| 460 | 460 | width: 50vh; | |
| 461 | - | max-width: 100%; | |
| 461 | + | max-width: 80%; | |
| 462 | 462 | background: linear-gradient(135deg, var(--gloop-start), var(--gloop-end)); | |
| 463 | 463 | mask: var(--gloop-mask) center / contain no-repeat; | |
| 464 | 464 | } |
| ... | ... | @@ -1059,6 +1059,10 @@ li.MuiListSubheader-root { | |
| 1059 | 1059 | min-height: 1.5em; | |
| 1060 | 1060 | } | |
| 1061 | 1061 | ||
| 1062 | + | .cs-sidebar--left .cs-conversation > .cs-avatar { | |
| 1063 | + | align-self: center; | |
| 1064 | + | } | |
| 1065 | + | ||
| 1062 | 1066 | div.cs-message__content { | |
| 1063 | 1067 | white-space: normal; | |
| 1064 | 1068 | white-space-collapse: preserve-spaces; |
| ... | ... | @@ -1254,7 +1258,11 @@ div.cs-message__content { | |
| 1254 | 1258 | } | |
| 1255 | 1259 | ||
| 1256 | 1260 | .cs-conversation-header { | |
| 1257 | - | .cs-conversation-header__avatar, | |
| 1261 | + | .cs-conversation-header__avatar { | |
| 1262 | + | align-self: center; | |
| 1263 | + | margin-block: 0; | |
| 1264 | + | } | |
| 1265 | + | ||
| 1258 | 1266 | .cs-conversation-header__actions, | |
| 1259 | 1267 | .cs-conversation-header__back { | |
| 1260 | 1268 | margin-top: 0.2em; |
| ... | ... | @@ -2150,6 +2160,31 @@ button.MuiFab-root { | |
| 2150 | 2160 | min-width: var(--chat-avatar-size); | |
| 2151 | 2161 | min-height: var(--chat-avatar-size); | |
| 2152 | 2162 | } | |
| 2163 | + | ||
| 2164 | + | .cs-conversation-header__avatar { | |
| 2165 | + | flex: none; | |
| 2166 | + | width: var(--chat-avatar-size); | |
| 2167 | + | height: var(--chat-avatar-size); | |
| 2168 | + | margin-right: 0.5em; | |
| 2169 | + | } | |
| 2170 | + | } | |
| 2171 | + | ||
| 2172 | + | .cs-conversation { | |
| 2173 | + | padding: 0.4em 0.5em; | |
| 2174 | + | } | |
| 2175 | + | ||
| 2176 | + | .cs-main-container .cs-sidebar--left .cs-conversation > .cs-avatar, | |
| 2177 | + | #account-nav > a .cs-avatar, | |
| 2178 | + | #account-nav .account-nav-group > a .cs-avatar { | |
| 2179 | + | width: $mobile-sidebar-avatar-size; | |
| 2180 | + | height: $mobile-sidebar-avatar-size; | |
| 2181 | + | min-width: $mobile-sidebar-avatar-size; | |
| 2182 | + | min-height: $mobile-sidebar-avatar-size; | |
| 2183 | + | } | |
| 2184 | + | ||
| 2185 | + | .cs-main-container .cs-sidebar--left .cs-conversation > .cs-avatar { | |
| 2186 | + | flex: none; | |
| 2187 | + | margin-right: 0.5em; | |
| 2153 | 2188 | } | |
| 2154 | 2189 | ||
| 2155 | 2190 | .cs-main-container--responsive { |
| ... | ... | @@ -2266,8 +2301,9 @@ main:has(> .cs-main-container.tauri) { | |
| 2266 | 2301 | } | |
| 2267 | 2302 | ||
| 2268 | 2303 | #account-nav { | |
| 2269 | - | flex: 0 0 5.5em; | |
| 2270 | - | width: 5.5em; | |
| 2304 | + | --account-nav-width: 5.5em; | |
| 2305 | + | flex: 0 0 var(--account-nav-width); | |
| 2306 | + | width: var(--account-nav-width); | |
| 2271 | 2307 | padding-block: 0.35em; | |
| 2272 | 2308 | isolation: isolate; | |
| 2273 | 2309 | overflow: hidden; |
| ... | ... | @@ -2311,13 +2347,17 @@ main:has(> .cs-main-container.tauri) { | |
| 2311 | 2347 | } | |
| 2312 | 2348 | ||
| 2313 | 2349 | &:has(~ .label) { | |
| 2314 | - | height: 1.3em; | |
| 2350 | + | height: var(--account-nav-icon-height, 1.3em); | |
| 2315 | 2351 | } | |
| 2316 | 2352 | } | |
| 2317 | 2353 | ||
| 2318 | 2354 | > .label { | |
| 2319 | 2355 | font-size: 0.7em; | |
| 2320 | 2356 | text-align: center; | |
| 2357 | + | ||
| 2358 | + | @media (max-width: 576px) { | |
| 2359 | + | display: none; | |
| 2360 | + | } | |
| 2321 | 2361 | } | |
| 2322 | 2362 | ||
| 2323 | 2363 | &[href="/settings"] { |
| ... | ... | @@ -2382,6 +2426,11 @@ main:has(> .cs-main-container.tauri) { | |
| 2382 | 2426 | pointer-events: none; | |
| 2383 | 2427 | } | |
| 2384 | 2428 | } | |
| 2429 | + | ||
| 2430 | + | @media (max-width: 576px) { | |
| 2431 | + | --account-nav-width: 3.8em; | |
| 2432 | + | --account-nav-icon-height: 1.2em; | |
| 2433 | + | } | |
| 2385 | 2434 | } | |
| 2386 | 2435 | ||
| 2387 | 2436 | @keyframes call-indicator-pulse { |
+2
-2
src/bootstrap.scss
#
| ... | ... | @@ -11,8 +11,8 @@ | |
| 11 | 11 | font-family: system-ui; | |
| 12 | 12 | text-align: center; | |
| 13 | 13 | background: | |
| 14 | - | url(/gloop01.svg) top left / min(50vh, 100vw) auto no-repeat, | |
| 15 | - | url(/gloop02.svg) bottom right / min(50vh, 100vw) auto no-repeat, | |
| 14 | + | url(/gloop01.svg) top left / min(50vh, 80%) auto no-repeat, | |
| 15 | + | url(/gloop02.svg) bottom right / min(50vh, 80%) auto no-repeat, | |
| 16 | 16 | #7401cf; | |
| 17 | 17 | color: white; | |
| 18 | 18 |
+6
-1
src/components/Accounts.tsx
#
| ... | ... | @@ -265,6 +265,7 @@ export const Accounts = () => { | |
| 265 | 265 | {params.accountId === accountId && | |
| 266 | 266 | (isMobile || anyApps || anyInvites) && ( | |
| 267 | 267 | <NavLink | |
| 268 | + | aria-label="Messages" | |
| 268 | 269 | to={href("/accounts/:accountId/chats", { accountId })} | |
| 269 | 270 | > | |
| 270 | 271 | <FontAwesomeIcon icon={faMessage} /> |
| ... | ... | @@ -272,13 +273,17 @@ export const Accounts = () => { | |
| 272 | 273 | </NavLink> | |
| 273 | 274 | )} | |
| 274 | 275 | {params.accountId === accountId && anyApps && ( | |
| 275 | - | <NavLink to={href("/accounts/:accountId/apps", { accountId })}> | |
| 276 | + | <NavLink | |
| 277 | + | aria-label="Apps" | |
| 278 | + | to={href("/accounts/:accountId/apps", { accountId })} | |
| 279 | + | > | |
| 276 | 280 | <AppsIcon /> | |
| 277 | 281 | <div className="label">Apps</div> | |
| 278 | 282 | </NavLink> | |
| 279 | 283 | )} | |
| 280 | 284 | {params.accountId === accountId && anyInvites && ( | |
| 281 | 285 | <NavLink | |
| 286 | + | aria-label="Requests" | |
| 282 | 287 | to={href("/accounts/:accountId/requests", { accountId })} | |
| 283 | 288 | > | |
| 284 | 289 | <FontAwesomeIcon icon={faUserPlus} /> |