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 repository summary on mobile #17322

Merged
merged 5 commits into from
Oct 17, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions web_src/less/_repository.less
Original file line number Diff line number Diff line change
Expand Up @@ -2251,17 +2251,20 @@
.list {
width: 100%;
display: flex;
align-items: center;

.item {
width: 100%;
color: var(--color-text);

&:first-of-type {
border-radius: var(--border-radius) 0 0 var(--border-radius);
padding-left: .25rem;
}

&:last-of-type {
border-radius: 0 var(--border-radius) var(--border-radius) 0;
padding-right: .25rem;
}

a {
Expand Down Expand Up @@ -2398,6 +2401,10 @@
border-radius: 0;
user-select: none;

@media @mediaSm {
display: none;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

We can just remove the height of .repository-summary-language-stats, then the language stats bar can be shown correctly.


.bar {
white-space: nowrap;
border: 0;
Expand Down Expand Up @@ -3085,6 +3092,10 @@ td.blob-excerpt {
.repository-summary-language-stats {
height: 48px;
Copy link
Contributor

Choose a reason for hiding this comment

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

Here, we can remove this, then the layout is still correct I think.

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried that, but the height is set to that magic number for a reason. The comment above that line says prevent page shaking on language bar click and that's the case when removing it.

overflow: hidden;

@media @mediaSm {
height: auto;
}
}

.ui.form .right .ui.button {
Expand Down