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

Adjusted customizable logo size #9166

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Adjusted customizable logo size #9166

wants to merge 3 commits into from

Conversation

bsekachev
Copy link
Member

@bsekachev bsekachev commented Mar 3, 2025

Motivation and context

  • Max width set to 128px instead of fixed 64px
  • Logo is not resized anymore to max dimensions by CVAT

How has this been tested?

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

@bsekachev bsekachev requested a review from klakhov March 3, 2025 15:33
@codecov-commenter
Copy link

codecov-commenter commented Mar 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.33%. Comparing base (8c34848) to head (68b6d7a).
Report is 6 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9166      +/-   ##
===========================================
+ Coverage    73.31%   73.33%   +0.01%     
===========================================
  Files          448      448              
  Lines        45862    45868       +6     
  Branches      3914     3915       +1     
===========================================
+ Hits         33626    33637      +11     
+ Misses       12236    12231       -5     
Components Coverage Δ
cvat-ui 77.10% <100.00%> (+0.03%) ⬆️
cvat-server 70.31% <ø> (ø)

@@ -34,8 +34,6 @@

img {
object-fit: contain;
width: 100%;
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems that without a static container width and width: 100% on the image, object-fit: contain doesn't work as expected. As a result, logos larger than 128px won't be scaled down to fit but will be clipped instead.
image

Copy link
Member Author

Choose a reason for hiding this comment

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

Added max-width, max-height css props

Copy link
Member Author

Choose a reason for hiding this comment

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

However it breaks the implementation.

Copy link
Member Author

Choose a reason for hiding this comment

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

@klakhov
Try now

Copy link

sonarqubecloud bot commented Mar 4, 2025

Copy link
Contributor

@klakhov klakhov left a comment

Choose a reason for hiding this comment

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

Works for me

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.

3 participants