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

The CJK characters of the "Search Cancel" button will wrap #1105

Merged
merged 2 commits into from
Jun 26, 2023

Conversation

avennn
Copy link
Contributor

@avennn avennn commented Jun 25, 2023

Description

H5 search cancel text arranges vertically when lang switched to zh-CN. I think it is a bug.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Additional context

How has this been tested

  • follow the contribution doc,fork the project and clone it locally

  • install deps

  • change_config.yml: lang: en to lang: zh-CN

  • run npm run build && bundle exec jekyll serve

  • view in chrome devtool with mobile mode, click search icon, you will see "取消" arranging vertically at right side

  • with this commit, reproduce above steps and get the correct render result.

  • I have run bash ./tools/test (at the root of the project) locally and passed

  • I have tested this feature in the browser

Copy link
Owner

@cotes2020 cotes2020 left a comment

Choose a reason for hiding this comment

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

Thanks for raising this issue! But I think there is a better solution.

_sass/addon/commons.scss Outdated Show resolved Hide resolved
@cotes2020 cotes2020 changed the title fix(style): h5 search cancel text style problem The CJK characters of the "Search Cancel" button will wrap Jun 26, 2023
@@ -959,6 +959,7 @@ $btn-mb: 0.5rem;
color: var(--link-color);
margin-left: 1rem;
Copy link
Owner

Choose a reason for hiding this comment

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

Alright, please ignore the modification request above. Keep your changes, and add a margin improvement:

Suggested change
margin-left: 1rem;
margin-left: 0.75rem;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

@cotes2020 cotes2020 merged commit b6d1992 into cotes2020:master Jun 26, 2023
5 checks passed
@avennn avennn deleted the fix/mobile-search-cancel-btn branch June 26, 2023 06:26
gudtldn pushed a commit to gudtldn/gudtldn.github.io that referenced this pull request Jul 26, 2024
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.

2 participants