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

Logo is always 170 pixels wide, regardless of actual size #29721

Closed
1 of 5 tasks
gwharton opened this issue Aug 23, 2020 · 25 comments
Closed
1 of 5 tasks

Logo is always 170 pixels wide, regardless of actual size #29721

gwharton opened this issue Aug 23, 2020 · 25 comments
Labels
Area: Frontend Component: Image Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Priority: P3 May be fixed according to the position in the backlog. Progress: done Reported on 2.4.0 Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Severity: S3 Affects non-critical data or functionality and does not force users to employ a workaround.

Comments

@gwharton
Copy link
Contributor

gwharton commented Aug 23, 2020

Preconditions (*)

  1. 2.4-develop

Steps to reproduce (*)

  1. Login to Admin
  2. Content -> Configuration -> Global -> Edit -> Header
  3. Upload 800x300 example logo image (attached to issue)
  4. Enter 800 in Logo Attribute Width
  5. Enter 300 in Logo Attribute Height
  6. Save Configuration
  7. Clear cache
  8. Go to frontend and inspect logo dimensions

Expected result (*)

  1. Logo is 800 pixels wide

Actual result (*)

  1. Logo is 170 pixels wide

image


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

The cause is this

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="logo">
<arguments>
<argument name="logo_width" xsi:type="number">170</argument>
</arguments>
</referenceBlock>
</body>
</page>

And was introduced here. #27497

800x300 example logo

@m2-assistant
Copy link

m2-assistant bot commented Aug 23, 2020

Hi @gwharton. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

Please, add a comment to assign the issue: @magento I am working on this


⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

🕙 You can find the schedule on the Magento Community Calendar page.

📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Aug 23, 2020
@ajijshekh123 ajijshekh123 self-assigned this Aug 24, 2020
@m2-assistant
Copy link

m2-assistant bot commented Aug 24, 2020

Hi @ajijshekh123. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 5. Add label Issue: Confirmed once verification is complete.

  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@ajijshekh123
Copy link

@magento give me 2.4-develop instance

@magento-engcom-team
Copy link
Contributor

Hi @ajijshekh123. Thank you for your request. I'm working on Magento 2.4-develop instance for you

@magento-engcom-team
Copy link
Contributor

Hi @ajijshekh123, here is your Magento instance.
Admin access: https://i-29721-2-4-develop.instances.magento-community.engineering/admin_2352
Login: 58aa3b1b Password: 509815ad9f08
Instance will be terminated in up to 3 hours.

@ajijshekh123
Copy link

Hello @gwharton,
I thought this is not an issue but this is a Magento feature.
As per your steps to be reproduced, actual result and expected result. I have reproduced on Magento 2.4 Instance.
PFA:
Admin:
image

Front end:
image

Thanks.

@ajijshekh123 ajijshekh123 added Area: Frontend Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P3 May be fixed according to the position in the backlog. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch labels Aug 25, 2020
@ghost ghost unassigned ajijshekh123 Aug 25, 2020
@magento-engcom-team
Copy link
Contributor

@ajijshekh123 Thank you for verifying the issue.

Unfortunately, not enough information was provided to acknowledge ticket. Please consider adding the following:

  • Add "Component: " label(s) to this ticket based on verification result. If uncertain, you may follow the best guess

Once all required information is added, please add label "Issue: Confirmed" again.
Thanks!

@magento-engcom-team magento-engcom-team removed the Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed label Aug 25, 2020
@ajijshekh123 ajijshekh123 self-assigned this Aug 25, 2020
@ajijshekh123 ajijshekh123 added Component: Image Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed labels Aug 25, 2020
@ghost ghost unassigned ajijshekh123 Aug 25, 2020
@magento-engcom-team magento-engcom-team added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Aug 25, 2020
@magento-engcom-team
Copy link
Contributor

✅ Confirmed by @ajijshekh123
Thank you for verifying the issue. Based on the provided information internal tickets MC-36982 were created

Issue Available: @ajijshekh123, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

@konarshankar07
Copy link
Contributor

@klein0r ..
I agree with you but I have submitted the fix which will sort this issue. If you want to get more information then you check out my PR #29746

@klein0r
Copy link
Contributor

klein0r commented Oct 26, 2020

I've seen that. But I've decided to create a default.xml for my shop, which is much easier to maintain than an additional patch file.

@magento-engcom-team magento-engcom-team added the Reported on 2.4.0 Indicates original Magento version for the Issue report. label Nov 13, 2020
@m2-community-project m2-community-project bot added Progress: PR in progress and removed Progress: PR Created Indicates that Pull Request has been created to fix issue labels Nov 13, 2020
@magentoexpert
Copy link

This is not a fix for Magento 2.4.1 installed with composer. The new folder structure is completely different which includes /pub
The folder structure /app/design/frontend/Magento/ referred to above is empty and obsolete

@denistrator
Copy link

Easy workaround

<referenceBlock name="logo">
    <arguments>
        <argument name="logo_width" xsi:type="null"/>
    </arguments>
</referenceBlock>

@Poovarasan-06
Copy link

@magento give me 2.4-develop instance

@magento-deployment-service
Copy link

Hi @Poovarasan-06. Thank you for your request. I'm working on Magento instance for you.

@magento-deployment-service
Copy link

@Poovarasan-06
Copy link

@magento give me 2.4-develop instance

@magento-deployment-service
Copy link

Hi @Poovarasan-06. Thank you for your request. I'm working on Magento instance for you.

@magento-deployment-service
Copy link

@Poovarasan-06
Copy link

@gwharton Hey, this issue is not reproducible in both testing instance and with my local setup.

@isevchris
Copy link

This appears to still be an issue with Magento 2.4.4-p6 at least, if your theme inherits from Magento Blank.

Essentially the logo image size gets loaded in from the following XML file:
./vendor/magento/theme-frontend-blank/Magento_Theme/layout/default.xml

If you override that file in your theme directory (./app/design/frontend); and set the xsi:type to null you can force it to load in the values from the database: core_config_data -> design/header/logo_width (or height).

    <referenceBlock name="logo">
        <arguments>
            <argument name="logo_width" xsi:type="null"></argument>
            <argument name="logo_height" xsi:type="null"></argument>
        </arguments>
    </referenceBlock>

@engcom-Bravo
Copy link
Contributor

Hi @gwharton,

Thanks for your reporting and collaboration.

we have verified the issue in Latest 2.4-develop instance and the issue is not reproducible.Kindly refer the screenshots.

Screenshot at May 27 15-11-32

Logo is 800 pixels wide

Hence We are closing this issue.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Frontend Component: Image Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Priority: P3 May be fixed according to the position in the backlog. Progress: done Reported on 2.4.0 Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Severity: S3 Affects non-critical data or functionality and does not force users to employ a workaround.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants