Skip to content

Menu not visible on small screens - #17592

Merged
ThiloteE merged 64 commits into
JabRef:mainfrom
yashh7p:fix-17470-side-pane-scroll
Nov 16, 2026
Merged

ThiloteE merged 64 commits into
JabRef:mainfrom
yashh7p:fix-17470-side-pane-scroll

Conversation

@yashh7p

@yashh7p yashh7p commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

When the JabRef window has limited space, the Groups, Web search and OpenOffice/LibreOffice panels in the side pane could become unreachable. This change wraps the side pane in a JavaFX ScrollPane.

After review feedback, the approach was simplified to avoid confusing scrollbars:

  • The groups list keeps a minimum height and uses its own existing scrollbar for long group lists.
  • Other panels keep their full height, so nothing is cut off.
  • The outer vertical scrollbar only appears when the window is too short for all panels together. It has a gap to the resize divider, so it no longer looks like part of it.
  • The horizontal scrollbar is kept, so wide content such as the OpenOffice buttons stays reachable when the side pane is narrow.
  • All unrelated formatting changes were removed from JabRefFrame.java.

Known limitation: when the side pane is scrolled sideways, the "Add group" button scrolls with the content. Moving it next to the filter field would fix this, but it touches GroupTreeView, so it is better as a follow-up.

Steps to test

  1. Start JabRef with the development setup and open a library with many groups.
  2. Open the Groups, Web search and OpenOffice/LibreOffice panels.
  3. In a normal-sized window, verify that only the groups list has a vertical scrollbar and no second bar sits next to the divider.
  4. Reduce the window height and verify that the groups list keeps a few rows, then an outer vertical scrollbar appears and all panels remain reachable.
  5. Drag the divider to make the side pane narrow and verify that a horizontal scrollbar appears and all OpenOffice buttons can be reached.
  6. Widen the side pane again and verify that the layout returns to normal.
  7. Close and reopen the side pane from the View menu and verify that the divider position is remembered.

Screenshots

Image Image

Normal window: only the groups list scrolls

TODO: add cropped screenshot of the side pane in a normal window

Short window: outer scrollbar as fallback

TODO: add cropped screenshot of the side pane in a short window

Related issues and pull requests

Closes #17470

AI usage

I used Claude to help investigate the issue, suggest the ScrollPane-based implementation in JabRefFrame.java and SidePaneComponent.java, and adjust the layout and CSS after review feedback. I reviewed, tested and understand the code and take responsibility for it.

AI CHECKLIST.md walkthrough

1. Code self-review

Nullability and control flow

  • [/] No == null / != null checks — JSpecify annotations (@NullMarked, @Nullable, @NonNull) used instead.
  • [/] No Objects.requireNonNull(...) — nullability expressed via JSpecify annotations.
  • [/] New classes annotated with @NullMarked (org.jspecify.annotations.NullMarked).
  • [/] New packages annotated with @NullMarked (org.jspecify.annotations.NullMarked).
  • [/] Optional consumed with ifPresent / ifPresentOrElse / map / orElseThrow — never orElse(unusedValue) nor an isPresent() + get() block.
  • [/] StringUtil.isBlank(...) used instead of s == null || s.isBlank().

Exceptions

  • [/] No catch (Exception e) — only specific exceptions are caught.
  • [/] No throw new RuntimeException(...) / IllegalStateException(...) — these tear down the whole application.
  • [/] Logged exceptions are passed as the last logger argument (LOGGER.info("...", e)), not concatenated into the message string.

Style and idioms

  • [/] New BibEntry objects built with withers (withField, not setField).
  • [/] Modern Java used: List.of() / Map.of() / Set.of(), Path.of(), SequencedCollection / SequencedSet, text blocks.
  • [/] Regexes use a precompiled Pattern.compile(...) constant, not String.matches(...).
  • [/] Keep alphabetical ordering when adding variables or enum items.
  • [/] Background work uses org.jabref.logic.util.BackgroundTask, not new Thread().
  • No commented-out code, no trivial comments restating the code, no AI-disclosure comments in source.
  • [/] Markdown Javadoc (///) uses Markdown syntax, not JavaDoc inline tags: `code` instead of {@code}, [ClassName] instead of {@link}.

User-facing text

  • [/] All user-facing text localized (Localization.lang in Java, % prefix in FXML).
  • [/] Sentence case (not Title Case); no trailing !; labels do not end with :.
  • [/] Variance expressed with placeholders ("...: %0"), not string concatenation.

Security

  • [/] User-controlled data (request params, entry fields, file contents) is HTML-escaped before being written into any text/html response — including exception/error messages, not just the success body (XSS).

Tests

  • [/] In case issue lists an example, this concrete example is covered by a test case.
  • [/] Behavior changes in org.jabref.model / org.jabref.logic have added or updated tests.
  • [/] Tests assert object contents (assertEquals), use plain JUnit asserts (not AssertJ), have no @DisplayName, do not catch exceptions (let them propagate so JUnit reports setup/teardown failures directly), and use @TempDir instead of manual temp directories.
  • [/] Fetcher tests hit the live endpoints — the remote API is not mocked or stubbed (automated-review suggestions to mock it are rejected on purpose).

2. Verification commands

  • [/] ./gradlew :jablib:check (or ./gradlew check for all modules).
  • ./gradlew checkstyleMain checkstyleTest checkstyleJmh.
  • ./gradlew modernizer.
  • ./gradlew --no-configuration-cache :rewriteDryRun reports no changes (run ./gradlew rewriteRun to fix).
  • ./gradlew javadoc.
  • [/] npx markdownlint-cli2 "docs/**/*.md" "*.md" (only if Markdown changed).
  • [/] npm ci && npm run textlint reports no misspellings (only if Markdown changed).
  • [/] Only if formatting is still off after rewriteRun: docker run -v $(pwd):/github/workspace ghcr.io/leventebajczi/intellij-format:master "*.java" "" ".idea/codeStyles/Project.xml".

3. Documentation

  • CHANGELOG.md entry added if the change is visible to the user (end-user wording, no extra blank lines, sorted in next to existing entries about the same component/feature). Link the issue if one exists; link the PR only when no issue exists.
  • Searched jabref/issues and jabref-koppor/issues for a related issue; linked only on a confident match.
  • [/] Requirement added to docs/requirements/<area>.md if the change is a new feature or significant bug fix (skip for refactors, minor fixes, and internal changes).
  • [/] Developer documentation under docs/ updated if behavior or architecture changed.

4. Pull request

  • PR body built from .github/PULL_REQUEST_TEMPLATE.md, every section filled.
  • All checklist items kept and marked [x], [ ], or [/].
  • "Steps to test" is a numbered list with a cropped screenshot of the result for every visible change; no video.
  • All HTML comments removed from the PR body.
  • [/] PR created with gh pr create --body-file <file> (not --body).

Checklist

  • I own the copyright of the code submitted and I license it under the MIT license
  • If AI tools were used, I disclosed them in the "AI usage" section and reviewed, understood, and take full ownership of all AI-generated code
  • I manually tested my changes in running JabRef (always required)
  • [/] I added JUnit tests for changes (if applicable)
  • I added screenshots in the PR description (if change is visible to the user)
  • I added one sentence (max 20 words) to CHANGELOG.md describing the change from the user's point of view (if the change is visible to the user)
  • [/] I checked the user documentation for up-to-dateness and submitted a pull request to our user documentation repository

@github-actions

Copy link
Copy Markdown
Contributor

Hey @yashh7p! 👋

Thank you for contributing to JabRef!

We have automated checks in place, based on which you will soon get feedback if any of them are failing. We also use Qodo for review assistance. It will update your pull request description with a review help and offer suggestions to improve the pull request.

After all automated checks pass, a maintainer will also review your contribution. Once that happens, you can go through their comments in the "Files changed" tab and act on them, or reply to the conversation if you have further inputs. You can read about the whole pull request process in our contribution guide.

Please ensure that your pull request is in line with our AI Usage Policy and make necessary disclosures.

@jabref-machine jabref-machine added this to the 6.0 🍫🍯🌙 milestone Oct 26, 2026
@jabref-machine jabref-machine added the dev: send-to-black-forest Port to the black-forest branch of JabRef/jabref-black-forest after merging (ADR-0073) label Oct 26, 2026
@github-actions github-actions Bot added good second issue Issues that involve a tour of two or three interweaved components in JabRef component: libre-office labels Oct 26, 2026
@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

PR Summary by Qodo

Make side panels accessible in small windows

🐞 Bug fix 🕐 10-20 Minutes

Grey Divider

AI Description

• Wrap the side pane in a scrollable viewport so panels remain reachable in short windows.
• Show scrollbars when needed and preserve the side pane’s existing split-pane behavior.
• Document the user-visible fix in the changelog.
Diagram

graph TD
  Frame["JabRefFrame"] --> Split["Horizontal Split"] --> Scroll["Scroll Pane"] --> Side["Side Pane"] --> Panels["Side Panels"]
  CSS["Theme CSS"] --> Scroll
Loading
High-Level Assessment

Wrapping the existing side pane in a ScrollPane is the most direct way to keep every panel, including its header, reachable. Scrolling individual panels would not address content clipped elsewhere in the side pane.

Files changed (3) +25 / -4

Bug fix (2) +24 / -4
JabRefFrame.javaPlace the side pane in a scrollable split-pane item +16/-4

Place the side pane in a scrollable split-pane item

• Wraps the SidePane in a ScrollPane with scrollbars as needed and preserves its preferred minimum height. Adds and removes the wrapper, rather than the SidePane itself, when visible panels change.

jabgui/src/main/java/org/jabref/gui/frame/JabRefFrame.java

jabref-base.cssStyle the side-pane scroll container +8/-0

Style the side-pane scroll container

• Removes scroll-container padding and makes its background and viewport transparent.

jabgui/src/main/resources/org/jabref/gui/theme/internal/jabref-base.css

Documentation (1) +1 / -0
CHANGELOG.mdDocument side-panel accessibility fix +1/-0

Document side-panel accessibility fix

• Adds a user-facing entry explaining that side panels are reachable in small windows and links issue #17470.

CHANGELOG.md

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Code Review by Qodo

🐞 Bugs (5) 📘 Rule violations (2)

Grey Divider


Action required

1. Side pane still clips in small windows 🐞 Bug
Description
The new .side-pane-scroll rules in jabref-base.css target a ScrollPane style class that no Java
code assigns, and the side pane is not wrapped in a ScrollPane in this checkout. A search of
jabgui/src/main finds no sidePaneScroll or side-pane-scroll reference outside the stylesheet,
so the CSS is dead and the overflow scrolling the PR describes does not exist.
Code

jabgui/src/main/resources/org/jabref/gui/theme/internal/jabref-base.css[R1819-1822]

+.side-pane-scroll {
+    -fx-background-color: transparent;
+    -fx-padding: 0;
+}
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The `.side-pane-scroll` CSS rules are defined but nothing applies that style class, and the side pane is not wrapped in a ScrollPane. Short windows therefore still clip the side panels.
## Fix Focus Areas
- jabgui/src/main/resources/org/jabref/gui/theme/internal/jabref-base.css[1819-1832]
- jabgui/src/main/java/org/jabref/gui/sidepane/SidePaneComponent.java[42-53]
## Recommended Fix
In the JabRefFrame code that places the side pane, wrap the side pane container in a `ScrollPane`. Use fit-to-width, a vertical policy of AS_NEEDED and a horizontal policy of NEVER, and add the `side-pane-scroll` style class. Verify the result in a short window.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

2. Lower panels are cut off in short windows 🐞 Bug
Description
SidePaneComponent.initialize() sets setMinHeight(Region.USE_PREF_SIZE) for every non-Groups
panel, so these panels refuse to shrink below their preferred height. With no scroll container in
this tree to absorb the overflow, the bottom panels are cut off in a short window, which is the
failure the PR claims to fix.
Code

jabgui/src/main/java/org/jabref/gui/sidepane/SidePaneComponent.java[R47-53]

+        if (sidePaneType == SidePaneType.GROUPS) {
+            // keep a few rows visible; the groups list scrolls inside this height
+            setMinHeight(150);
+        } else {
+            // never squeeze or cut off the other panels
+            setMinHeight(Region.USE_PREF_SIZE);
+        }
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Non-Groups side panels are pinned to their preferred height and the Groups panel uses a hard-coded 150px minimum. No scroll container absorbs the overflow, so panels are clipped in short windows.
## Fix Focus Areas
- jabgui/src/main/java/org/jabref/gui/sidepane/SidePaneComponent.java[46-53]
## Recommended Fix
Add the ScrollPane wrapper described in the previous finding. Then check whether the Groups minimum is still needed, and if so derive it from font metrics instead of hard-coding 150.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


View medium (4)
3. Group dragging stops at the visible edge 🐞 Bug
Description
GroupTreeView calculates drag-scroll boundaries from the full tree height and scrolls only the
tree's own scrollbar, while the new sidePaneScroll can clip that tree. When the outer viewport
cuts off part of the Groups tree, dragging near its visible edge neither enters the tree's
auto-scroll zone nor moves the outer pane, so groups below the viewport cannot be reached during the
drag.
Code

jabgui/src/main/java/org/jabref/gui/frame/JabRefFrame.java[R202-204]

+        sidePaneScroll.setContent(sidePane);
+        sidePaneScroll.setFitToWidth(true);
+        sidePaneScroll.setFitToHeight(true);
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Wrapping the Groups tree in a scroll pane allows the outer viewport to clip it, but the tree's drag auto-scroll uses its full height and moves only its own scrollbar. A drag cannot reveal group targets beyond the outer viewport.
## Fix Focus Areas
- jabgui/src/main/java/org/jabref/gui/frame/JabRefFrame.java[200-206]
- jabgui/src/main/java/org/jabref/gui/groups/GroupTreeView.java[547-622]
## Recommended Fix
Make group drag auto-scroll account for the visible intersection with the enclosing side-pane viewport and scroll the outer pane when the pointer approaches that viewport's edge. Preserve the existing tree auto-scroll behavior when the tree itself needs scrolling.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


4. Reformatting obscures the scrolling fix 📘 Rule violation
Description
JabRefFrame reformats existing constructor and setup calls into single lines without changing
their behavior. The PR carries these unrelated edits through many untouched methods, expanding
review scope and obscuring the actual side-pane change.
Code

jabgui/src/main/java/org/jabref/gui/frame/JabRefFrame.java[151]

+        this.viewModel = new JabRefFrameViewModel(preferences, aiService, stateManager, dialogService, this, this::getOpenDatabaseAction, entryTypesManager, fileUpdateMonitor, clipBoardManager, taskExecutor);
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
Issue description
The PR reformats many existing multiline method calls and expressions without changing their behavior, making the functional side-pane change harder to review.
Fix Focus Areas
- jabgui/src/main/java/org/jabref/gui/frame/JabRefFrame.java[134-188]
- jabgui/src/main/java/org/jabref/gui/frame/JabRefFrame.java[253-259]
- jabgui/src/main/java/org/jabref/gui/frame/JabRefFrame.java[354-470]
Recommended Fix
Revert formatting-only changes outside the side-pane scrolling implementation, preserving only the necessary imports, field, layout setup, and child replacement changes.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


5. JabRefFrame loses an import separator 📘 Rule violation
Description
The import block removes the blank line separating standard-library imports from JavaFX imports.
This whitespace-only edit is unrelated to the side-pane behavior change and alters an untouched code
region.
Code

jabgui/src/main/java/org/jabref/gui/frame/JabRefFrame.java[8]

-
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
A whitespace-only deletion removes the blank separator between standard-library and JavaFX imports in an otherwise functional change.
## Fix Focus Areas
- jabgui/src/main/java/org/jabref/gui/frame/JabRefFrame.java[5-10]
## Recommended Fix
Restore the blank line between `java.util.function.Supplier` and the JavaFX imports.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


6. Hiding a panel jumps users to the top 🐞 Bug
Description
The new child-list listener resets sidePaneScroll to zero whenever a child is added, while
SidePane.updateView() clears and re-adds every remaining child for any visibility or order change.
If a user is scrolled to a lower panel and hides or reorders a panel, the rebuild schedules a reset
that moves the panel they were viewing out of sight.
Code

jabgui/src/main/java/org/jabref/gui/frame/JabRefFrame.java[R295-297]

+                if (change.wasAdded()) {
+                    Platform.runLater(() -> sidePaneScroll.setVvalue(0));
+                    return;
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Hiding or reordering a side panel rebuilds the child list and resets the outer scroll position to the top, even when the user is viewing a lower panel.
## Fix Focus Areas
- jabgui/src/main/java/org/jabref/gui/frame/JabRefFrame.java[293-300]
- jabgui/src/main/java/org/jabref/gui/sidepane/SidePane.java[57-65]
## Recommended Fix
Do not reset the scroll position for routine child-list rebuilds. If a top reset is needed when the side pane first becomes visible, limit it to that transition; retain the current scroll position when existing panels are hidden or reordered.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



View low (1)
Informational
7. A magic height value hides the Groups panel rule 🐞 Bug
Description
SidePaneComponent.initialize() hard-codes setMinHeight(220) for the Groups panel with no named
constant or explanation of why 220 was chosen. The minimum-height rule is the core of the scrolling
design, so a future reader tuning it has no context for the value.
Code

jabgui/src/main/java/org/jabref/gui/sidepane/SidePaneComponent.java[48]

+            setMinHeight(220);
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
Issue description
The Groups side-pane minimum height is an unexplained literal `220` in `SidePaneComponent.initialize()`, which makes the layout rule hard to find and tune.
Fix Focus Areas
- jabgui/src/main/java/org/jabref/gui/sidepane/SidePaneComponent.java[46-53]
Recommended Fix
Extract `220` into a documented `private static final double` constant (for example `GROUPS_MIN_HEIGHT`) with a one-line comment stating that it keeps a few group rows visible before the outer scroll pane takes over, and use it in the `setMinHeight` call.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Resolved findings
1. Hiding a panel jumps users to the top ✓ Resolved

Resolving commit: b020cad

Resolution reason
N/A
Description
The new child-list listener resets sidePaneScroll to zero whenever a child is added, while
SidePane.updateView() clears and re-adds every remaining child for any visibility or order change.
If a user is scrolled to a lower panel and hides or reorders a panel, the rebuild schedules a reset
that moves the panel they were viewing out of sight.

2. Side-panel scrolling has no regression test ✓ Resolved
Description
The PR changes JabRefFrame.initLayout() and updateSidePane() to wrap the side pane in a scroll
pane, but adds no automated test for the overflow behavior. A short window can therefore regress the
scrollbar or panel accessibility without a test detecting it.

3. The scrolling fix has no traceable requirement ✓ Resolved
Description
JabRefFrame implements the new small-window side-pane behavior without a corresponding requirement
artifact or implementation trace link. Because this is a user-visible bug fix, its intended behavior
and code coverage cannot be checked through the repository's requirements trace.

4. The fix entry breaks changelog style ✓ Resolved
Description
The new fixed entry starts with Make instead of a required We fixed prefix. Readers see an
implementation-style fragment in the unreleased fixed list, unlike neighboring user-focused entries.

5. Scrolling over Groups misses lower panels ✓ Resolved
Description
sidePaneScroll adds an outer vertical scroller around the Groups tree's own scrolling table
without handing wheel events between them. When the pointer is over a scrollable group list, wheel
input scrolls that list rather than moving the outer side pane toward panels below it.

6. Newly opened panels can stay off-screen ✓ Resolved
Description
sidePaneScroll retains its scroll position when SidePane replaces its children, and
updateSidePane() does not bring an added panel into view. If someone opens a panel through its
toggle while the side pane is scrolled down, the new panel can be placed above the viewport without
any visible indication that it opened.

7. Narrow side panes hide header controls ✓ Resolved
Description
sidePaneScroll disables horizontal scrolling while fitting the side pane to the viewport width,
even though its headers contain non-wrapping rows of buttons. When the side pane is narrower than
the Groups header or OpenOffice button row, controls extending past the viewport are clipped with no
horizontal scrolling path to reach them.

8. Saved side-pane widths reset on startup ✓ Resolved
Description
The new 250-pixel minimum on sidePaneScroll clamps any saved horizontal divider position that
would place the side pane below that width. updateHorizontalDividerPosition() restores the saved
ratio directly, so users with a narrower saved side pane can see it expanded on startup, reducing
the space available to the main content.

9. Group controls require extra scrolling ✓ Resolved
Description
sidePane.setMinHeight(Region.USE_PREF_SIZE) prevents the Groups panel from shrinking its tree to
fit the available height, despite the tree being the side pane’s growable content. In a short
window, the outer scroll pane instead clips the entire Groups panel at its preferred height, so
users must scroll past the tree to reach the Add group button even when Groups is the only open
panel.

Grey Divider

Tip of the day
💡 Did you know, you can choose which labels appear on a finding, and whether they show icons or text

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread CHANGELOG.md Resolved
@github-actions github-actions Bot mentioned this pull request Oct 26, 2026
2 tasks done
@github-actions github-actions Bot added component: libre-office status: changes-required Pull requests that are not yet complete and removed component: libre-office labels Oct 26, 2026
@yashh7p

yashh7p commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

“Source Code Tests / Database tests” fails in SynchronizationSimulatorTest.simulateLiveGroupEditPropagation (client B still sees “Group A” instead of “Renamed group”). My PR only touches JabRefFrame.java, a CSS file and CHANGELOG.md, so this looks unrelated, possibly flaky or caused by a recent change on main. Could someone re-run it or confirm?

@yashh7p yashh7p left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only failing check is “Would merge into the other branch”: JabRefFrame.java differs by roughly 440 lines between main and black-forest, so my change conflicts there and a smaller change wouldn’t avoid it.

Could you remove the dev: send-to-black-forest label? This is a UI usability fix, and I don’t think it needs to reach the released version before the next regular release. If you’d rather port it, I understand a draft port PR will be opened after the merge, and I’m happy to help resolve it if needed.

Thanks!

@Siedlerchr
@egonw
@jabref-machine
@jakkarth

@ThiloteE

ThiloteE commented Nov 8, 2026

Copy link
Copy Markdown
Member

Tried this PR. It fixes the issue, albeit it looking quite ugly in the UI.

The vertical scrollbar is right next to the border line that is used to increase and decrease the width (by mouse drag) and it makes it look like the drag bar is actually a scrollbar. Even worse, if there are a lot of groups, we will have the groups scroll bar added as well, leading to a situation where it looks like we have 3 scroll bars right next to each other. Very confusing visually:
image

The horizontal scrollbar is right beneath the "add group" button, so it's easy to miss-click and accidentally create a new group. Not good, but that's more a problem of the location of the add group button. Not sure, if this scrollbar is actually needed, since users can also drag the side pane width horizontally, but ok. Probably nice to have, if users are used to the mouse-wheels. I also noticed that the minimum width for the side pane seems very small, so the "x" button to close a side pane item. Suboptimal, but whoever wants to make JabRef that small probably has a reason for it. To summarize: It's a little annoying, but probably it's better to keep the horizontal scrollbar.

Maybe a way is found to fix this issue without yet another vertical scrollbar? We allready have a scrollbar for the groups section, shouldn't that suffice?

@ThiloteE

ThiloteE commented Nov 8, 2026

Copy link
Copy Markdown
Member
image

@ThiloteE

ThiloteE commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Merging. Thanks for the PR :-)

Having a scrollbar is a good enough solution. Users with small screens are the minority and having a scrollbar is better than parts of the UI simply vanishing. Users with 1920x1080 and larger are not affected in any way, unless they increase the font size.

@jabref-machine

Copy link
Copy Markdown
Collaborator

Successfully created backport PR for black-forest:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: css component: libre-office component: theming component: ui dev: send-to-black-forest Port to the black-forest branch of JabRef/jabref-black-forest after merging (ADR-0073) first contrib good second issue Issues that involve a tour of two or three interweaved components in JabRef size: small status: changes-required Pull requests that are not yet complete status: to-be-merged PRs which are accepted and should go into the merge-queue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Menu not visible on small screens

5 participants