Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui: fix banners overlapping #2947

Closed

Conversation

anikachurilova
Copy link
Member

@anikachurilova anikachurilova commented Dec 18, 2024

Closes: CERNDocumentServer/cds-rdm#296

Page banner:
Screenshot 2024-12-18 at 10 25 20

"Newer version" record banner:
Screenshot 2024-12-18 at 10 18 02

Error record banner:
Screenshot 2024-12-18 at 10 18 25

"Preview" record banner
Screenshot 2024-12-18 at 10 18 49

&.manage {
padding: 1em 0;
}
&.record-banner {
Copy link
Contributor

Choose a reason for hiding this comment

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

why is a new class needed? can't we apply this to the flashed message directly?

Copy link
Contributor

Choose a reason for hiding this comment

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

also, shouldn't it be in invenio-theme?

Copy link
Member Author

Choose a reason for hiding this comment

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

This will affect the main banner as well and cause this:

Screenshot 2024-12-18 at 10 31 54

Copy link
Contributor

@kpsherva kpsherva Dec 18, 2024

Choose a reason for hiding this comment

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

sorry, it took me some time to understand the implications.
if I managed to understand correctly, the fix will work only for the record detail page, what if we have the banner in other pages? f.e. community form has an error?
if that is the case, could you propose a solution which is more generic and works for all cases, not only for a record?

@@ -104,7 +104,7 @@

<!-- PREVIEW HEADER -->
{% if is_preview %}
<div class="ui info flashed bottom attached manage message">
<div class="ui info flashed bottom attached manage message record-banner">
Copy link
Contributor

Choose a reason for hiding this comment

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

since you moved the css to invenio theme, you should also propagate the template changes to the invenio-theme templates, otherwise it will be fixed only here in the record details template of app rdm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI: fix banners overlapping
2 participants