Project

General

Profile

Actions

Bug #2575

closed

Text annotation: Layout issues

Added by Alexander Watzinger 6 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
UI
Target version:
Start date:
2025-07-11
Estimated time:
Found in version:

Description

I noticed some layout issues (different font, underlines at breadcrumb links, ...) at views involving the text annotation field.
See e.g. inserting a source (https://demo.openatlas.eu/insert/source) compared to inserting an event (https://demo.openatlas.eu/insert/activity) where everything looks ok.
So I'm guessing some CSS is loaded for text annotation fields that is than interfering with the standard layout.

Assigning it to Olivia for now kindly asking to look into it because Katharina is at a conference. But you can of course manage this as you see fit.

Actions #1

Updated by Alexander Watzinger 6 months ago

I took a look and it seems that in openatlas/templates/text-annotation.html this CSS file is loaded: /static/vendor/text-annotation/style.css
If this CSS file is removed the layout looks normal again but the text annotation doesn't work anymore. So this isn't really an option.

I played around with loading it instead as first CSS file in layout.html but 2 issues with that approach:
  • Although it looks better (e.g. links in breadcrumb have no underline) it still messes up e.g. positioning of search/language menu
  • Even if this approach would work, it would mean to load a 225k CSS file, which isn't needed in most places, every time. We may be able to load it conditionally in layout.html but it wouldn't be a very elegant and error prone approach.

I hope the additional information helps solving it.

Actions #2

Updated by Alexander Watzinger 6 months ago

  • Subject changed from Layout issues with text annotation fields to Text annotation: Layout issues
Actions #3

Updated by Olivia Reichl 4 months ago

  • Status changed from Assigned to Resolved
Actions #4

Updated by Alexander Watzinger 4 months ago

  • Status changed from Resolved to Closed
Actions #5

Updated by Alexander Watzinger 4 months ago

  • Target version changed from 8.15.0 to 8.14.0
Actions

Also available in: Atom PDF