Changeset c0e00a2 in Klonkt


Ignore:
Timestamp:
06/26/2026 02:38:00 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
f46f2be
Parents:
fdd0d61
Message:

fix(ios): safe-area top for fullscreen editor toolbar + fedi tabs on mobile

  1. Fullscreen post-editor toolbar (Done + format icons) sat under the camera/Dynamic Island -> padding-top with env(safe-area-inset-top).
  2. Fediverse tabs on mobile (no desktop top-nav there) sat under the notch -> margin-top with safe-area inset + extra headroom.
Location:
src/views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/post-edit.ejs

    rfdd0d61 rc0e00a2  
    638638  flex: 1 1 auto; min-height: 0; height: auto; max-height: none;
    639639}
     640/* iOS: in fullscreen the toolbar sits at the very top → push it below the
     641   camera / Dynamic Island with the top safe-area inset. */
     642.pe-editor-frame.pe-fs .pe-toolbar { padding-top: calc(.4rem + env(safe-area-inset-top, 0px)); }
    640643/* NB: deliberately NO overflow:hidden on html/body in fullscreen — that could get
    641644   stuck (e.g. leaving fullscreen via navigation) and would block scrolling on the
  • src/views/partials/fedi-tabs.ejs

    rfdd0d61 rc0e00a2  
    3030.fedi-tab-badge { flex: 0 0 auto; min-width: 1.15em; padding: 0 .3em; border-radius: 999px;
    3131  background: var(--accent, #e8b04b); color: #fff; font-size: .66rem; line-height: 1.5; text-align: center; }
     32/* Mobile: no desktop top-nav here, so clear the camera/notch + give headroom. */
     33@media (max-width: 767px) { .fedi-tabs { margin-top: calc(1.5rem + env(safe-area-inset-top, 0px)); } }
    3234@media (max-width: 520px) { .fedi-tab { padding: .55rem .25rem; font-size: .82rem; } }
    3335@media (max-width: 380px) { .fedi-tab { font-size: .74rem; } }
Note: See TracChangeset for help on using the changeset viewer.