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

Update settings in OOD 3.1.x to allow custom logo control of height and width #3630

Closed
rlara3 opened this issue Jun 24, 2024 · 5 comments
Closed
Labels
bug Existing functionality not working as expected component/dashboard
Milestone

Comments

@rlara3
Copy link

rlara3 commented Jun 24, 2024

On OOD 3.0, the setting for the size of the home screen logo controlled the height, with the width setting as proportionate:

OOD 3.0
<img src="/public/sos_elsa.png?timestamp=1708715652" alt="logo" class="py-2">

Example:

image

With OOD 3.1, the width is set at 100, creating issues with the image size. Large and small images are scaled up to the width of the page, creating formatting issues:

OOD 3.1.1
<img src="/public/sos_elsa.png?timestamp=1708717039" alt="logo" class="py-2 w-100">

Example:

image

The setting is in the file nginx-stage.yml.

@osc-bot osc-bot added this to the Backlog milestone Jun 24, 2024
@johrstrom
Copy link
Contributor

Hi, thanks for this ticket. This has been patched in the next release, but i'll put this in the 3.1 milestone so that we can pick it up and patch it in some 3.1.x release.

@johrstrom johrstrom modified the milestones: Backlog, 3.1 Jun 24, 2024
@johrstrom
Copy link
Contributor

As a workaround until it gets released, you can edit this file located /var/www/ood/apps/sys/dashboard/app/helpers/dashboard_helper.rb

image_tag("OpenOnDemand_stack_RGB.svg", alt: "logo", height: "85", class: 'py-2 w-100')

And change this to remove the w-100 class.

- image_tag("OpenOnDemand_stack_RGB.svg", alt: "logo", height: "85", class: 'py-2 w-100') 
+ image_tag("OpenOnDemand_stack_RGB.svg", alt: "logo", height: "85", class: 'py-2') 

@johrstrom
Copy link
Contributor

OK - looks like you need 2 edits in the same function. You can check this backport for the actual diff you need: #3632

@rlara3
Copy link
Author

rlara3 commented Jun 24, 2024 via email

@johrstrom johrstrom added bug Existing functionality not working as expected component/dashboard labels Jun 24, 2024
@johrstrom
Copy link
Contributor

This was fixed in 3.1.7 and will be fixed in future releases too. Thanks for the ticket!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Existing functionality not working as expected component/dashboard
Projects
None yet
Development

No branches or pull requests

3 participants