Skip to content

Commit

Permalink
fix: repository summary on mobile (go-gitea#17322)
Browse files Browse the repository at this point in the history
This PR fixes the repository summary on mobile. Most of it is vertically centering things and some spacing.

#### Before:
![Screen Shot 2021-10-15 at 19 12 25](https://user-images.githubusercontent.com/13721712/137528901-021867b5-73c3-4f48-8408-18bc573f5ee7.png)

#### After:
![Screen Shot 2021-10-15 at 19 28 06](https://user-images.githubusercontent.com/13721712/137528970-058a66fd-d5d9-44ea-ba5f-998bf8cbf4fe.png)
  • Loading branch information
kolaente authored and Stelios Malathouras committed Mar 28, 2022
1 parent ee91a45 commit 07f63f3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions web_src/less/_repository.less
Original file line number Diff line number Diff line change
Expand Up @@ -2261,17 +2261,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 @@ -2408,6 +2411,10 @@
border-radius: 0;
user-select: none;

@media @mediaSm {
display: none;
}

.bar {
white-space: nowrap;
border: 0;
Expand Down Expand Up @@ -3099,6 +3106,10 @@ td.blob-excerpt {
.repository-summary-language-stats {
height: 48px;
overflow: hidden;

@media @mediaSm {
height: auto;
}
}

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

0 comments on commit 07f63f3

Please sign in to comment.