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

Stacks was automatically wrapped when inputting Chinese #41045

Closed
fangjunai opened this issue Nov 21, 2024 · 2 comments
Closed

Stacks was automatically wrapped when inputting Chinese #41045

fangjunai opened this issue Nov 21, 2024 · 2 comments

Comments

@fangjunai
Copy link

fangjunai commented Nov 21, 2024

Microsoft Edge v131.0.2903.51 (x64)
Bootstrap v5.3.3

22

手机
iPhone

Reduced test cases

<form class="row g-1">
	<div class="col-12">
		<div class="hstack gap-3">
			<label for="phone1" class="form-label">手机</label>
			<input type="text" class="form-control" id="phone1" value="1234567890" />
		</div>
	</div>
	<div class="col-12">
		<div class="hstack gap-1">
			<label for="phone2" class="form-label">iPhone</label>
			<input type="text" class="form-control" id="phone2" value="1234567890" />
		</div>
	</div>
</form>

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Microsoft Edge

What version of Bootstrap are you using?

5.3.3

@julien-deramond
Copy link
Member

julien-deramond commented Nov 21, 2024

Hey @fangjunai
In this case, you could add a .text-nowrap to the label containing "手机":

<div class="hstack gap-3">
  <label for="phone1" class="form-label text-nowrap">手机</label>
  <input type="text" class="form-control" id="phone1" value="1234567890" />
</div>

See https://codepen.io/julien-deramond/pen/BaXgxLB

@fangjunai
Copy link
Author

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants