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

[FIX] sign_oca: restricted company logo max-height to prevent l… #103

Open
wants to merge 2 commits into
base: 17.0
Choose a base branch
from

Conversation

anasassi119
Copy link

…arge logos from affecting the size of the signing area

…arge logos from affecting the size of the signing area
@OCA-git-bot
Copy link
Contributor

Hi @etobella,
some modules you are maintaining are being modified, check this out!

@pedrobaeza pedrobaeza added this to the 17.0 milestone Apr 4, 2025
@pedrobaeza
Copy link
Member

Isn't this still deforming images? What about max-height?

@anasassi119
Copy link
Author

I don't think it would deform images, image deformation occurs when you change the aspect ratio of the image, here, we're simply restricting the height of the logo so that it wouldn't affect the signing area.

In a signing module, what are your priorities? Even deforming the logo a little bit is fine as long as the signing area is big enough.

An example of the problem this fixes:

Before
429812441-8bf7f0a3-93e5-4f6f-9fa6-0fd62638aa44

After
429812519-b1ced261-eb3a-451f-a96d-4ff18651a572

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

OK then

Copy link
Member

@etobella etobella left a comment

Choose a reason for hiding this comment

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

As stated on #100, use max-height, not height. If you use height with a small logo, the logo will be pixeled.

You will receive the same benefits but other people will not have problems.

Also, fix the commit name (you don't need the [17.0] on the commit, just on the Pull REquest. If possible, avoid two PR, just ammend the current and push force to replace the current commit.

For example, to fix this you could use:

git commit --amend
git push -f

…ogos from affecting the size of the signing area
@anasassi119 anasassi119 changed the title [17.0][FIX] sign_oca: restricted company logo max-height to prevent l… [FIX] sign_oca: restricted company logo max-height to prevent l… Apr 4, 2025
@anasassi119
Copy link
Author

Silly me thought I used max-height in this PR. Updated.

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.

4 participants