Skip to content

Fixes #39069 - Notifications title is cut by the header#10863

Merged
jeremylenz merged 1 commit intotheforeman:developfrom
MariaAga:banner-height-to-notifications
Feb 10, 2026
Merged

Fixes #39069 - Notifications title is cut by the header#10863
jeremylenz merged 1 commit intotheforeman:developfrom
MariaAga:banner-height-to-notifications

Conversation

@MariaAga
Copy link
Member

when instance title is set.
Made the header and banner vars available more globally and not only for the rails css.

before
image

after
image

Updated to check for Setting[:instance_title].present? as when the setting was empty Foreman.settings.find('instance_title') was returning true.

Copy link
Member

@chris1984 chris1984 left a comment

Choose a reason for hiding this comment

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

Tested and works great, left one style comment

@@ -269,7 +269,7 @@ def body_css_classes
end

def all_body_css_classes
Copy link
Member

@chris1984 chris1984 Feb 10, 2026

Choose a reason for hiding this comment

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

Would something like this work to make it more clean:

def all_body_css_classes
  classes = body_css_classes
  classes += ' compact-ui' if User.current&.ui_compact_mode
  classes += ' user-banner-present' if Setting[:instance_title].present?
  classes
end

Copy link
Member Author

Choose a reason for hiding this comment

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

much cleaner, thanks!

@MariaAga MariaAga force-pushed the banner-height-to-notifications branch from 34e2cb7 to e7baeca Compare February 10, 2026 15:24
Copy link
Member

@chris1984 chris1984 left a comment

Choose a reason for hiding this comment

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

ACK, thanks for cleaning it up. @jeremylenz want to take a look?

Copy link
Contributor

@jeremylenz jeremylenz left a comment

Choose a reason for hiding this comment

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

ACK based on @chris1984 testing, thanks @MariaAga!

@jeremylenz jeremylenz merged commit 29bdc27 into theforeman:develop Feb 10, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments