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

styles: 优化form label的line-height的计算方式 #6847

Merged
merged 2 commits into from
May 11, 2023

Conversation

qkiroc
Copy link
Collaborator

@qkiroc qkiroc commented May 11, 2023

What

🤖 Generated by Copilot at 5749a67

This pull request improves the appearance and alignment of form labels and inputs in horizontal and inline modes by modifying the packages/amis-ui/scss/components/form/_form.scss file.

🤖 Generated by Copilot at 5749a67

The form of doom is broken and misaligned
We must adjust the padding and the line
To match the input height and font sublime
We fix the layout with our code divine

Why

How

🤖 Generated by Copilot at 5749a67

  • Fix the form layout and style issues by adjusting the padding-top and line-height of the form label in horizontal and inline mode to align with the input height and font size (link, link) in _form.scss

@github-actions github-actions bot added the style Bug or PR related to component's style label May 11, 2023
@github-actions
Copy link

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

@qkiroc
Copy link
Collaborator Author

qkiroc commented May 11, 2023

优化后的效果:image

@qkiroc qkiroc merged commit fdc3872 into baidu:master May 11, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
style Bug or PR related to component's style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants