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

[Redesign] Fix visual issues on narrow screens #8724

Merged
merged 1 commit into from
Aug 2, 2021
Merged

Conversation

loic-sharma
Copy link
Contributor

@loic-sharma loic-sharma commented Jul 30, 2021

Fixes a few problems. Addresses #8719

I recommend reviewing without whitespace changes:

image

1. Prevent README images from overflow.

Before...

image

After...

image

2. Fix Bootstrap grid to add gutter and avoid an unnecessary scroll bar

Before...

Notice the scrollbar and the lack of gutter.

image

After...

image

3. Improve the installation instructions scrollbar

Before...

Notice the installation instructions do not stretch all the way across.

Notice there is space below the scrollbar.

image

After...

image

@loic-sharma loic-sharma requested a review from a team as a code owner July 30, 2021 21:47
img {
max-width: 100%;
}
}
Copy link
Contributor Author

@loic-sharma loic-sharma Jul 30, 2021

Choose a reason for hiding this comment

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

Previously image overflow was prevented by this:

#readme-less {
img {
max-width: 100%;
}
ul.contains-task-list, li.task-list-item {
list-style-type: none;
}
}
#readme-more {
img {
max-width: 100%;
}
ul.contains-task-list, li.task-list-item {
list-style-type: none;
}
}

This code applies to collapsible README views, which is used on upload and manage package pages.

@@ -215,791 +215,808 @@
@helper MakeLicenseSpan(CompositeLicenseExpressionSegment segment) {<span>@segment.Value</span>}

<section role="main" class="container main-container page-package-details-v2">
<div class="row">
Copy link
Contributor Author

@loic-sharma loic-sharma Jul 30, 2021

Choose a reason for hiding this comment

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

This is what caused the scrollbar and lack of gutter on small screens. We currently have two Bootstrap rows nested within each other without any columns in the middle:

image

@loic-sharma loic-sharma marked this pull request as draft July 30, 2021 22:04
@loic-sharma loic-sharma changed the title [Redesign] Fix overflow issues [Redesign] Fix overflow issues on narrow screens Jul 30, 2021
@loic-sharma loic-sharma changed the title [Redesign] Fix overflow issues on narrow screens [Redesign] Fix visual issues on narrow screens Jul 30, 2021
@@ -414,55 +420,6 @@
font-weight: 600;
text-decoration: underline;
}

.tab-content {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is V1 installation instruction styling which isn't used in the redesign.

@loic-sharma loic-sharma marked this pull request as ready for review July 30, 2021 23:26
Copy link
Contributor

@dannyjdev dannyjdev left a comment

Choose a reason for hiding this comment

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

Looks good! :shipit:

@loic-sharma loic-sharma merged commit 4b61b47 into dev Aug 2, 2021
@loic-sharma loic-sharma deleted the loshar-overflow branch August 2, 2021 23:11
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.

3 participants