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

Tweak LabelWrapper's max-width. #34609

Closed
tmatsuur opened this issue Sep 7, 2021 · 2 comments
Closed

Tweak LabelWrapper's max-width. #34609

tmatsuur opened this issue Sep 7, 2021 · 2 comments
Labels
[Package] Components /packages/components [Type] Enhancement A suggestion for improvement.

Comments

@tmatsuur
Copy link

tmatsuur commented Sep 7, 2021

What problem does this address?

The 'Custom' label in the typographic properties translates to 'カスタム' in Japanese.
In my environment, the width of the label is just a little bit too short, so it is translated as 'カスタ...'. in my environment.
Is it possible to improve this problem?

image

My environment
OS: Windows 10
Browser: Google Chrome
WordPress: 5.8.0

What is your proposed solution?

The inline style for this label will look like this.

.css-1kxnmuk-View-LabelWrapper {
    max-width: calc(100% - 10px);
}

Changing this "10px" to a smaller value such as ".5em" can be expected to improve the situation.

The source code files that seem to be involved are as follows.

input-control/styles/input-control-styles.tsx : 261-263

export const LabelWrapper = styled( FlexItem )`
	max-width: calc( 100% - 10px );
`;
@jordesign
Copy link
Contributor

Hi @tmatsuur - do you still taking this place in the current interface?

@jordesign jordesign added the [Type] Enhancement A suggestion for improvement. label Aug 17, 2023
@tmatsuur
Copy link
Author

Thank you for your comments.
The latest UI has changed the areas I noted and the issues I initially felt have been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Components /packages/components [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants