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

fix: Adjustments to tabs components to prevent overflows #2278

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jdslaugh
Copy link
Contributor

Description

  • css/_layouts.scss - Removed the min-heights and instead let it utilize the height of its container, which wont force it past acceptable limits

  • Table/styles.scss - increased min-width to 100% to fill the container, set the header widths to auto and removed the top margin

  • TabsComponent/styles.scss - Set the height to 100%, utilizing flex to allow the contents to grow but not overflow. Limited the overflow scrolling to the inner table versus the entire container

  • TableDetailPage/styles.scss - Switched from fixed to absolute positioning so it would stop overflowing, removed the background and adjusted the positioning at smaller sizes so it wouldn't overlap

  • TableDetailPage/index.tsx - Removed the visibility handlers that hid the Collapse all functionality and instead rotated it above the tabs at small enough sizes

Motivation and Context

Scrolling in the container would cause the tabs components to overflow out of position

Before

before

After

after

How Has This Been Tested?

Manually and comparison against production

CheckList

  • PR title addresses the issue accurately and concisely
  • Updates Documentation and Docstrings
  • Adds tests
  • Adds instrumentation (logs, or UI events)

Signed-off-by: Josh Slaughter <8338893+jdslaugh@users.noreply.github.com>
Signed-off-by: Josh Slaughter <8338893+jdslaugh@users.noreply.github.com>
Copy link
Member

@Golodhros Golodhros left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +123 to +124
padding: 8px 0px 0px 14px;
margin-bottom: -16px;
Copy link
Member

Choose a reason for hiding this comment

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

Could we use spacer- tokens here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:frontend From the Frontend folder
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants