-
Notifications
You must be signed in to change notification settings - Fork 52
RHIDP-7614: Displaying the preferred username and Company Logo #1254
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
base: main
Are you sure you want to change the base?
RHIDP-7614: Displaying the preferred username and Company Logo #1254
Conversation
Updated preview: https://redhat-developer.github.io/red-hat-developers-documentation-rhdh/pr-1254/ @ 08/08/25 13:43:49 |
...es/configuring-the-global-header/proc-displaying-preferred-username-in-profile-dropdown.adoc
Outdated
Show resolved
Hide resolved
@its-mitesh-kumar to review the compant logo |
profile display name LGTM ! |
5997a85
to
1a6ae62
Compare
1a6ae62
to
2bc3691
Compare
…d-User-profile-icon-support
modules/configuring-the-global-header/proc-displaying-company-logo-in-the-global-header.adoc
Outdated
Show resolved
Hide resolved
modules/configuring-the-global-header/proc-displaying-company-logo-in-the-global-header.adoc
Outdated
Show resolved
Hide resolved
modules/configuring-the-global-header/proc-displaying-company-logo-in-the-global-header.adoc
Outdated
Show resolved
Hide resolved
modules/configuring-the-global-header/proc-displaying-company-logo-in-the-global-header.adoc
Outdated
Show resolved
Hide resolved
modules/configuring-the-global-header/proc-displaying-company-logo-in-the-global-header.adoc
Outdated
Show resolved
Hide resolved
modules/configuring-the-global-header/proc-displaying-company-logo-in-the-global-header.adoc
Outdated
Show resolved
Hide resolved
modules/configuring-the-global-header/proc-displaying-company-logo-in-the-global-header.adoc
Outdated
Show resolved
Hide resolved
modules/configuring-the-global-header/proc-displaying-company-logo-in-the-global-header.adoc
Outdated
Show resolved
Hide resolved
modules/configuring-the-global-header/proc-displaying-company-logo-in-the-global-header.adoc
Outdated
Show resolved
Hide resolved
...es/configuring-the-global-header/proc-displaying-preferred-username-in-profile-dropdown.adoc
Outdated
Show resolved
Hide resolved
…d-User-profile-icon-support
@jmagak Also we need to add some documentation on how user can now enable the logo in sidebar. |
|
||
The `CompanyLogo` supports strict display constraints to ensure visual consistency: | ||
|
||
* Maximum dimensions: 150px wide, 40px high. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now width and height can be provided through the configuration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please Refer PR redhat-developer/rhdh-plugins#1068
* The logo must retain its original proportions. | ||
* The component layout remains fixed and cannot be moved from its mount point. | ||
* Supports the following props: | ||
** `logo`: Encoded logo image. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now theme-specific logo can be provided through configuration.
redhat-developer/rhdh#3023
|
||
The `CompanyLogo` supports strict display constraints to ensure visual consistency: | ||
|
||
* Maximum dimensions: 150px wide, 40px high. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Maximum dimensions: 150px wide, 40px high. | |
* Default dimensions: | |
- Width: 150px | |
- Maximum Height: 40px | |
modules/configuring-the-global-header/proc-displaying-company-logo-in-the-global-header.adoc
Show resolved
Hide resolved
modules/configuring-the-global-header/proc-displaying-company-logo-in-the-global-header.adoc
Show resolved
Hide resolved
modules/configuring-the-global-header/proc-displaying-company-logo-in-the-global-header.adoc
Show resolved
Hide resolved
* The default maximum dimensions: `150px` wide, `40px` high. | ||
* The logo must retain its original proportions using `object-fit: contain`. | ||
* The component keeps its layout fixed and you cannot move it from its mount point. | ||
* `CompanyLogo` automatically scales the image down if dimensions exceed allowed size. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of this maybe below points make more sense
- The image is never cropped or distorted.
- If the configured width would result in a height greater than the allowed maximum (default: 40px), it is automatically scaled down.
- This means: in some cases, changing only the width may not visibly affect the logo unless height is also adjusted.
modules/configuring-the-global-header/proc-displaying-company-logo-in-the-global-header.adoc
Show resolved
Hide resolved
modules/configuring-the-global-header/proc-displaying-company-logo-in-the-global-header.adoc
Show resolved
Hide resolved
dark: 'data:image/svg+xml;base64,...' | ||
---- | ||
+ | ||
`CompanyLogo` uses the following configuration elements to control fallback and sizing behavior: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can take help of https://github.com/redhat-developer/rhdh-plugins/blob/main/workspaces/global-header/README.md#fallback-behavior to complete this.
IMPORTANT: Do Not Merge - To be merged by Docs Team Only
Version(s): 1.7, main
Issue: RHIDP-7614
Preview:
7.3. Displaying company logo in the global header
7.4. Displaying the preferred username in the profile dropdown