Bug #2575
closed
Text annotation: Layout issues
Added by Alexander Watzinger 6 months ago.
Updated 4 months ago.
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.
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.
- Subject changed from Layout issues with text annotation fields to Text annotation: Layout issues
- Status changed from Assigned to Resolved
- Status changed from Resolved to Closed
- Target version changed from 8.15.0 to 8.14.0
Also available in: Atom
PDF