forgejo/web_src/css/modules
0ko 89bff31287 fix(ui): apply navbar min-height correctly, fix jitter on mobile (#11274)
Replaces https://codeberg.org/forgejo/forgejo/pulls/11271

This rule was problematic and didn't quite make sense:
* the intention is to have a navbar that is 48px+1px border
* we apply `min-height:49px` to: `#navbar` with intention of making it 49px tall total, with border
* but we also apply it to `#navbar .navbar-left/right`
* elements `#navbar .navbar-left/right` become 49px tall
* their parent `#navbar` becomes 49px+1px border = 50px, overriding what was done in step 2

This height missmatch had an incompatibility with this definition for open menu inside of navbar on mobile, causing jitter when the menu is opened/closed, because it was expecting navbar body to be 48px, but due to the rule that was removed it was actually 49px.

```css
#navbar.navbar-menu-open .navbar-left .navbar-mobile-right {
	    min-height: 48px;
}
```

The fix is to only apply `min-height` to `#navbar`'s children. At least `.navbar-left` is always expected to be present unconditionally on all pages. This does make the navbar 1px shorter. If we still want a 50px navbar but without the bug let me know and I'll adjust.

### Preview by @panc

From https://codeberg.org/forgejo/forgejo/pulls/11271, also applies to this PR.

| Before | After |
|----|----|
| <video src="/attachments/515fdfc1-cb97-46af-88ac-9bb0e216a996" title="Screencast From 2026-02-13 19-56-32" controls></video> | <video src="/attachments/133d1499-4660-402d-8082-f407b3644e5c" title="Screencast From 2026-02-13 19-57-29" controls></video> |

Reported-by: panc <panc@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11274
Reviewed-by: Robert Wolff <mahlzahn@posteo.de>
2026-02-14 14:57:44 +01:00
..
animations.css feat(ui): add switch between formats when previewing CITATION.{cff,bib} files (#9103) 2025-11-14 14:39:20 +01:00
breadcrumb.css Use unique class for breadcrumb divider (#26524) 2023-08-16 00:08:23 +00:00
button-legacy.css chore: remove obsolete code from button-legacy.css (#10581) 2025-12-31 03:13:05 +01:00
button.css fix(ui/buttons): implement .disabled class (#10410) 2025-12-16 14:18:08 +01:00
card.css Update JS dependencies and misc tweaks (#25540) 2023-06-27 21:44:17 +02:00
checkbox.css Tweak and fix toggle checkboxes (#30527) 2024-04-21 12:06:42 +02:00
comment.css Consolidate the two review boxes into one (#24738) 2023-05-29 12:44:03 +02:00
container.css Fix wiki search overflowing on wide screens (#6047) 2024-11-25 09:50:13 +01:00
dialog.css feat(ui): improve modal width rules (#10246) 2025-11-28 19:38:50 +01:00
dimmer.css fix(ui): ensure dimmer always covers whole page (#7471) 2025-04-06 04:23:03 +00:00
divider.css Pulse page improvements (#30149) 2024-04-21 11:08:33 +02:00
dropdown.css feat(ui): convert disable/enable workflow menu to JS-less dropdown (#10133) 2025-11-21 16:59:01 +01:00
flexcontainer.css Use flex-container for dashboard layout (#30214) 2024-04-21 11:12:00 +02:00
grid.css Implement CSS-only input toggling, refactor related forms 2024-08-21 15:03:19 +02:00
hashbox.css chore(ui): improve hashbox (#8721) 2025-08-03 05:49:24 +02:00
header.css fix(ui): fix width of attached fomantic segments (#10240) 2025-11-30 17:13:23 +01:00
input.css Fix right-aligned input icons (#30301) 2024-04-07 15:40:31 +02:00
label.css chore(ui): cleanup unused color CSS (#7898) 2025-05-19 14:04:28 +02:00
list.css Fix floated list items (#30377) 2024-04-15 20:01:35 +02:00
message.css [Port] gitea#30014: Various code view improvements 2024-03-28 16:43:14 +01:00
modal.css Improve issue history dialog and make poster can delete their own history (#27323) 2023-09-28 08:43:20 +00:00
navbar.css fix(ui): apply navbar min-height correctly, fix jitter on mobile (#11274) 2026-02-14 14:57:44 +01:00
normalize.css Use line-height: normal by default (#26635) 2023-08-22 10:19:15 +00:00
segment.css fix(ui): fix width of attached fomantic segments (#10240) 2025-11-30 17:13:23 +01:00
select.css add stylelint-stylistic (#25285) 2023-06-17 13:20:32 +00:00
stats-bar.css feat(ui): responsive, JS-free repo language stats panel (#9532) 2025-10-05 20:36:35 +02:00
svg.css Prevent SVG shrinking (#25652) 2023-07-04 02:15:06 +00:00
switch.css feat(ui): implement new buttons for better cohesiveness (#9359) 2025-10-05 05:22:32 +02:00
tab.css feat: remove fomantic's tab module (#8587) 2025-07-21 22:33:17 +02:00
table.css fix(ui): fix width of attached fomantic segments (#10240) 2025-11-30 17:13:23 +01:00
tippy.css fix(ui): tippy menu styles too broad, affecting switch in PR review (#10969) 2026-01-22 23:38:09 +01:00
toast.css Remove some unused CSS styles (#26852) 2023-09-01 08:59:38 +02:00
user-cards.css fix(ui): ensure same width of usercards in grid (#6799) 2025-05-25 13:31:53 +02:00