diff options
author | Benno <blueworrybear@gmail.com> | 2019-11-24 07:07:15 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-11-24 01:07:15 +0200 |
commit | bb2c0c3729b4bb4b1475b176dfe8e1d43f49481f (patch) | |
tree | 95256280d8faf5703acf327a233cc550f2daa552 | |
parent | e6036d9899ffbe8142eba7f5a5606a39a69ef8d2 (diff) | |
download | gitea-bb2c0c3729b4bb4b1475b176dfe8e1d43f49481f.tar.gz gitea-bb2c0c3729b4bb4b1475b176dfe8e1d43f49481f.zip |
fix add comment button text align (#9140)
-rw-r--r-- | public/css/index.css | 2 | ||||
-rw-r--r-- | web_src/less/_review.less | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/public/css/index.css b/public/css/index.css index 1265fffad0..52c5604a2d 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -1057,7 +1057,7 @@ td.blob-excerpt{background-color:#fafafa} .ui.user.list .item .description .octicon:not(:first-child){margin-left:5px} .ui.user.list .item .description a{color:#333} .ui.user.list .item .description a:hover{text-decoration:underline} -.ui.button.add-code-comment{font-size:14px;height:16px;padding:2px 0 0;position:relative;width:16px;z-index:5;float:left;margin:-2px -10px -2px -20px;opacity:0;transition:transform .1s ease-in-out;transform:scale(1,1)} +.ui.button.add-code-comment{font-size:14px;height:16px;line-height:16px!important;padding:0;position:relative;width:16px;z-index:5;float:left;margin:2px -10px 2px -20px;opacity:0;transition:transform .1s ease-in-out;transform:scale(1,1)} .ui.button.add-code-comment:hover{transform:scale(1.2,1.2)} .focus-lines-new .ui.button.add-code-comment.add-code-comment-right,.focus-lines-old .ui.button.add-code-comment.add-code-comment-left{opacity:1} .comment-code-cloud{padding:4px;position:relative;border:1px solid #f1f1f1;margin:13px 10px 5px auto} diff --git a/web_src/less/_review.less b/web_src/less/_review.less index d838c09c2d..a5e299accc 100644 --- a/web_src/less/_review.less +++ b/web_src/less/_review.less @@ -1,12 +1,13 @@ .ui.button.add-code-comment { font-size: 14px; height: 16px; - padding: 2px 0 0; + line-height: 16px !important; + padding: 0; position: relative; width: 16px; z-index: 5; float: left; - margin: -2px -10px -2px -20px; + margin: 2px -10px 2px -20px; opacity: 0; transition: transform 0.1s ease-in-out; transform: scale(1, 1); |