Skip to content

Conversation

@artemmufazalov
Copy link
Member

@artemmufazalov artemmufazalov commented Sep 4, 2025

Closes #2751

Stand: https://nda.ya.ru/t/jTA9G8kH7JVXA9

CI Results

Test Status: ⚠️ FLAKY

📊 Full Report

Total Passed Failed Flaky Skipped
378 371 0 5 2
Test Changes Summary ⏭️2

⏭️ Skipped Tests (2)

  1. Scroll to row, get shareable link, navigate to URL and verify row is scrolled into view (tenant/diagnostics/tabs/queries.test.ts)
  2. Copy result button copies to clipboard (tenant/queryEditor/queryEditor.test.ts)

Bundle Size: 🔽

Current: 85.41 MB | Main: 85.42 MB
Diff: 7.72 KB (-0.01%)

✅ Bundle size decreased.

ℹ️ CI Information
  • Test recordings for failed tests are available in the full report.
  • Bundle size is measured for the entire 'dist' directory.
  • 📊 indicates links to detailed reports.
  • 🔺 indicates increase, 🔽 decrease, and ✅ no change in bundle size.


.entity-status {
--button-width: 28px;
--button-width: 24px;
Copy link
Member Author

Choose a reason for hiding this comment

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

With no paddings there less width is needed

.entity-status {
--button-width: 28px;
--button-width: 24px;
--entity-status-height: 20px;
Copy link
Member Author

Choose a reason for hiding this comment

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

Without fixed height this element for some reason has extra 4px empty height. It was not visible because of 5px margin on link element. It can be fixed by display flex / inline-flex, but such display break buttons layout.

EntityStatus without fixed height and with display:block:
Screenshot 2025-09-04 at 15 36 02

.ydb-paginated-table__row:hover &,
.ydb-tree-view__item & {
width: min-content;
padding: var(--g-spacing-1);
Copy link
Member Author

Choose a reason for hiding this comment

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

Removed paddings to fix selected rows view

Screenshot 2025-09-04 at 15 37 21

@artemmufazalov artemmufazalov marked this pull request as ready for review September 4, 2025 13:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes styling issues with button backgrounds in selected table rows for the EntityStatus component. The changes focus on improving the visual appearance and consistency of the EntityStatus component within table contexts.

  • Adjusted button width and added height variables for better sizing consistency
  • Removed padding from buttons container to prevent background bleeding
  • Cleaned up margin styling for the status text

renderName?: (name?: string) => React.ReactNode;
label?: string;
path?: string;
iconPath?: string;
Copy link
Member Author

Choose a reason for hiding this comment

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

Removed unused props to make component a little easier

@artemmufazalov artemmufazalov added this pull request to the merge queue Sep 8, 2025
Merged via the queue into main with commit f0d6b7c Sep 8, 2025
10 of 11 checks passed
@artemmufazalov artemmufazalov deleted the 2751-entity-status branch September 8, 2025 17:42
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.

Fix buttons bg in selected table rows

3 participants