Skip to content

fix(web): align external API and service API buttons vertically in datasets header#38139

Open
p2003722 wants to merge 1 commit into
langgenius:mainfrom
p2003722:fix/web-datasets-header-alignment
Open

fix(web): align external API and service API buttons vertically in datasets header#38139
p2003722 wants to merge 1 commit into
langgenius:mainfrom
p2003722:fix/web-datasets-header-alignment

Conversation

@p2003722

Copy link
Copy Markdown

What this PR does / why we need it

Currently, in the datasets list header, the External Knowledge API button and the Service API button are not perfectly vertically aligned. This is caused by a difference in their DOM structure and flex properties:

  1. The External Knowledge API button lacks an explicit h-6 class, making its height dependent on padding and line-height.
  2. The Service API button is wrapped in a block-level <div> which interferes with the items-center flex alignment of the parent container.

This PR fixes the vertical alignment by:

  • Adding h-6 to the External Knowledge API button to ensure a strict 24px height.
  • Changing the Service API outer wrapper to <div className="flex items-center">.

Which issue(s) this PR fixes

N/A

@p2003722 p2003722 requested review from WTW0313 and iamjoel as code owners June 29, 2026 03:35
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. refactor labels Jun 29, 2026
@github-actions github-actions Bot added the web This relates to changes on the web. label Jun 29, 2026
@p2003722

Copy link
Copy Markdown
Author

Hi @crazywoola @hyoban, just a tiny UI fix for the datasets header buttons' vertical alignment. Could you please take a quick look when you have time? Thanks!

@crazywoola

Copy link
Copy Markdown
Member

Please attach a screenshot for frontend UI bugs.

@p2003722

Copy link
Copy Markdown
Author
image The two components in this area are not aligned vertically. @crazywoola

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

Labels

refactor size:XS This PR changes 0-9 lines, ignoring generated files. web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants