From 425ae38aa9ea3e9a25dee235aa9176762fe4bc5b Mon Sep 17 00:00:00 2001 From: Gitea Date: Sun, 17 Nov 2019 01:57:37 +0000 Subject: [PATCH 1/4] Fix double scroll in branch dropdown --- public/css/index.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/css/index.css b/public/css/index.css index 100870c1b24bf..da41bc9c00e38 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -448,7 +448,7 @@ i.icon.centerlock{top:1.5em} .repository .owner.dropdown{min-width:40%!important} .repository #file-buttons{margin-left:auto!important;font-weight:400} .repository #file-buttons .ui.button{padding:8px 10px;font-weight:400} -.repository .metas .menu{max-height:300px;overflow-x:auto} +.repository .metas .menu{overflow-x:auto} .repository .metas .ui.list .hide{display:none!important} .repository .metas .ui.list .item{padding:0} .repository .metas .ui.list .label.color{padding:0 8px;margin-right:5px} From 2cb2877d09ddef93358039297f619cd1962d328a Mon Sep 17 00:00:00 2001 From: Gitea Date: Sun, 17 Nov 2019 10:31:53 +0000 Subject: [PATCH 2/4] Revert of 425ae38aa9ea3e9a25dee235aa9176762fe4bc5b --- public/css/index.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/css/index.css b/public/css/index.css index da41bc9c00e38..50be12bd97bfb 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -448,7 +448,7 @@ i.icon.centerlock{top:1.5em} .repository .owner.dropdown{min-width:40%!important} .repository #file-buttons{margin-left:auto!important;font-weight:400} .repository #file-buttons .ui.button{padding:8px 10px;font-weight:400} -.repository .metas .menu{overflow-x:auto} +.repository .metas .menu{max-height:300px;overflow-x:auto} .repository .metas .ui.list .hide{display:none!important} .repository .metas .ui.list .item{padding:0} .repository .metas .ui.list .label.color{padding:0 8px;margin-right:5px} @@ -547,7 +547,7 @@ i.icon.centerlock{top:1.5em} .repository.new.issue .comment.form .content:after{border-right-color:#fff} .repository.new.issue .comment.form .content .markdown{font-size:14px} .repository.new.issue .comment.form .metas{min-width:220px} -.repository.new.issue .comment.form .metas .filter.menu{max-height:300px;overflow-x:auto} +.repository.new.issue .comment.form .metas .filter.menu{overflow-x:auto} .repository.view.issue .title{padding-bottom:0!important} .repository.view.issue .title h1{font-weight:300;font-size:2.3rem;margin-bottom:5px} .repository.view.issue .title h1 .ui.input{font-size:.5em;vertical-align:top;width:50%;min-width:600px} @@ -990,7 +990,7 @@ td.blob-excerpt{background-color:#fafafa} @media only screen and (max-width:768px){.dashboard.feeds .filter.menu .item .floating.label,.dashboard.issues .filter.menu .item .floating.label{top:10px;left:auto;width:auto;right:13px} } .dashboard.feeds .filter.menu .jump.item,.dashboard.issues .filter.menu .jump.item{margin:1px;padding-right:0} -.dashboard.feeds .filter.menu .menu,.dashboard.issues .filter.menu .menu{max-height:300px;overflow-x:auto;right:0!important;left:auto!important} +.dashboard.feeds .filter.menu .menu,.dashboard.issues .filter.menu .menu{overflow-x:auto;right:0!important;left:auto!important} @media only screen and (max-width:768px){.dashboard.feeds .filter.menu,.dashboard.issues .filter.menu{width:100%} } .dashboard.feeds .right.stackable.menu>.item.active,.dashboard.issues .right.stackable.menu>.item.active{color:#d9453d} From 1c9caf20e20bb27517cf70b91eec2e01c40fe558 Mon Sep 17 00:00:00 2001 From: Gitea Date: Sun, 17 Nov 2019 11:51:36 +0000 Subject: [PATCH 3/4] Changes in .less, generated new .css --- public/css/index.css | 4 ++-- web_src/less/_repository.less | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/public/css/index.css b/public/css/index.css index 50be12bd97bfb..d1e473508b285 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -448,7 +448,7 @@ i.icon.centerlock{top:1.5em} .repository .owner.dropdown{min-width:40%!important} .repository #file-buttons{margin-left:auto!important;font-weight:400} .repository #file-buttons .ui.button{padding:8px 10px;font-weight:400} -.repository .metas .menu{max-height:300px;overflow-x:auto} +.repository .metas .menu{overflow-x:auto} .repository .metas .ui.list .hide{display:none!important} .repository .metas .ui.list .item{padding:0} .repository .metas .ui.list .label.color{padding:0 8px;margin-right:5px} @@ -990,7 +990,7 @@ td.blob-excerpt{background-color:#fafafa} @media only screen and (max-width:768px){.dashboard.feeds .filter.menu .item .floating.label,.dashboard.issues .filter.menu .item .floating.label{top:10px;left:auto;width:auto;right:13px} } .dashboard.feeds .filter.menu .jump.item,.dashboard.issues .filter.menu .jump.item{margin:1px;padding-right:0} -.dashboard.feeds .filter.menu .menu,.dashboard.issues .filter.menu .menu{overflow-x:auto;right:0!important;left:auto!important} +.dashboard.feeds .filter.menu .menu,.dashboard.issues .filter.menu .menu{max-height:300px;overflow-x:auto;right:0!important;left:auto!important} @media only screen and (max-width:768px){.dashboard.feeds .filter.menu,.dashboard.issues .filter.menu{width:100%} } .dashboard.feeds .right.stackable.menu>.item.active,.dashboard.issues .right.stackable.menu>.item.active{color:#d9453d} diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 974dd571ccd86..f5cef47be470d 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -88,7 +88,6 @@ .metas { .menu { - max-height: 300px; overflow-x: auto; } @@ -581,7 +580,7 @@ min-width: 220px; .filter.menu { - max-height: 300px; + //max-height: 300px; overflow-x: auto; } } From e6197a254bb405d4898fc4c95e4e1e88a494c1c7 Mon Sep 17 00:00:00 2001 From: Gitea Date: Sun, 17 Nov 2019 11:56:28 +0000 Subject: [PATCH 4/4] Revert unnecessary commented line --- public/css/index.css | 2 +- web_src/less/_repository.less | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/css/index.css b/public/css/index.css index d1e473508b285..da41bc9c00e38 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -547,7 +547,7 @@ i.icon.centerlock{top:1.5em} .repository.new.issue .comment.form .content:after{border-right-color:#fff} .repository.new.issue .comment.form .content .markdown{font-size:14px} .repository.new.issue .comment.form .metas{min-width:220px} -.repository.new.issue .comment.form .metas .filter.menu{overflow-x:auto} +.repository.new.issue .comment.form .metas .filter.menu{max-height:300px;overflow-x:auto} .repository.view.issue .title{padding-bottom:0!important} .repository.view.issue .title h1{font-weight:300;font-size:2.3rem;margin-bottom:5px} .repository.view.issue .title h1 .ui.input{font-size:.5em;vertical-align:top;width:50%;min-width:600px} diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index f5cef47be470d..67bac7c6f03fd 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -580,7 +580,7 @@ min-width: 220px; .filter.menu { - //max-height: 300px; + max-height: 300px; overflow-x: auto; } }