Skip to content

Commit 554988c

Browse files
authored
fix: repository summary on mobile (#17322)
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)
1 parent 7117c77 commit 554988c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

web_src/less/_repository.less

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2261,17 +2261,20 @@
22612261
.list {
22622262
width: 100%;
22632263
display: flex;
2264+
align-items: center;
22642265

22652266
.item {
22662267
width: 100%;
22672268
color: var(--color-text);
22682269

22692270
&:first-of-type {
22702271
border-radius: var(--border-radius) 0 0 var(--border-radius);
2272+
padding-left: .25rem;
22712273
}
22722274

22732275
&:last-of-type {
22742276
border-radius: 0 var(--border-radius) var(--border-radius) 0;
2277+
padding-right: .25rem;
22752278
}
22762279

22772280
a {
@@ -2408,6 +2411,10 @@
24082411
border-radius: 0;
24092412
user-select: none;
24102413

2414+
@media @mediaSm {
2415+
display: none;
2416+
}
2417+
24112418
.bar {
24122419
white-space: nowrap;
24132420
border: 0;
@@ -3099,6 +3106,10 @@ td.blob-excerpt {
30993106
.repository-summary-language-stats {
31003107
height: 48px;
31013108
overflow: hidden;
3109+
3110+
@media @mediaSm {
3111+
height: auto;
3112+
}
31023113
}
31033114

31043115
.ui.form .right .ui.button {

0 commit comments

Comments
 (0)