File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,11 +101,13 @@ export const repoFiles = css`
101101 background : ${ themeVars . color . body } ;
102102 min-height : 48px ;
103103 padding : 0px 8px !important ;
104+ overflow-x : visible;
104105 svg {
105106 color : ${ themeVars . color . text . light . num1 } ;
106107 }
107108 .file-header-left {
108- padding : 8px !important ;
109+ padding : 6px 8px !important ;
110+ line-height : 1.45 ;
109111 // 伪元素宽度等于按钮宽度而不是父元素宽度
110112 position : relative;
111113 & : hover {
@@ -116,7 +118,7 @@ export const repoFiles = css`
116118 content : "" ;
117119 background : ${ themeVars . github . underlineNav . borderColor . active } ;
118120 border-radius : ${ otherThemeVars . border . radius } ;
119- bottom : -7 px ;
121+ bottom : -8 px ;
120122 left : 0 ;
121123 height : 2px ;
122124 position : absolute;
@@ -127,9 +129,19 @@ export const repoFiles = css`
127129 text-decoration-line : none;
128130 }
129131 }
130- .file-header-right : hover {
131- background : ${ themeVars . github . control . transparent . bgColor . hover } ;
132- border-radius : ${ otherThemeVars . border . radius } ;
132+ .file-header-right {
133+ .btn-octicon {
134+ display : inline-flex;
135+ align-items : center;
136+ justify-content : center;
137+ padding : 0px 8px ;
138+ border-radius : ${ otherThemeVars . border . radius } ;
139+ height : 28px ;
140+ width : 28px ;
141+ & : hover {
142+ background : ${ themeVars . github . control . transparent . bgColor . hover } ;
143+ }
144+ }
133145 }
134146 }
135147 }
You can’t perform that action at this time.
0 commit comments