Skip to content

Conversation

@paulamalvarador-commits

Closes #12351

This PR improves the sizing behavior of the entry-table tooltip when the preview feature is enabled.
Previously, the tooltip became significantly larger than the actual preview content due to missing layout constraints.
The fix adjusts the tooltip container and the PreviewViewer sizing logic so the tooltip now adapts to its preferred size and remains compact.

Steps to test

Open Preferences → Entry preview.

Enable: “Show preview in entry table tooltip”.

Hover over any entry in the main table.

Observe that the tooltip now:

matches the size of the preview content,

no longer grows excessively,

remains readable and compact.

Screenshot

image

Mandatory checks

@github-actions
Copy link
Contributor

Hey @paulamalvarador-commits!

Thank you for contributing to JabRef! Your help is truly appreciated ❤️

We have automated checks in place, based on which you will soon get feedback if any of them are failing. In a while, maintainers 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.

Please re-check our contribution guide in case of any other doubts related to our contribution workflow.


@Path("libraries/{id}")
public class LibraryResource {
private static final Logger LOGGER = LoggerFactory.getLogger(LibraryResource.class);
Copy link
Member

Choose a reason for hiding this comment

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

Why is that deleted? Seems like there is something wrong with your branch/not up to date

@jabref-machine
Copy link
Collaborator

The title of the pull request must not start with "Fix for issue xyz". Please use a concise one-line summary that explains what the fix or change actually does. Example of a good title: "Prevent crash when importing malformed BibTeX entries".

@koppor koppor marked this pull request as draft November 27, 2025 23:35
@koppor koppor added the status: changes-required Pull requests that are not yet complete label Nov 27, 2025
@jabref-machine
Copy link
Collaborator

Your pull request modified git submodules.

Please follow our FAQ on submodules to fix.

@calixtus calixtus closed this Nov 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

first contrib status: changes-required Pull requests that are not yet complete

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Area of preview on hover should be shrink to the size of the text displayed

8 participants