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