@@ -275,6 +275,11 @@ export const prBranch = css`
275275 }
276276` ;
277277
278+ const botLabelStyle = {
279+ height : "20px" ,
280+ padding : "0 6px!important" ,
281+ marginLeft : "4px" ,
282+ } ;
278283// 评论
279284export const comment = css `
280285 .comment .comment-container {
@@ -299,6 +304,26 @@ export const comment = css`
299304 .comment-header {
300305 padding : 4px 4px 4px 16px ;
301306 min-height : 38px ;
307+ .comment-header-left {
308+ // bot 标签
309+ .ui .basic .label {
310+ ${ botLabelStyle }
311+ }
312+ a : has (relative-time ){
313+ text-decoration : underline;
314+ }
315+ // 已编辑按钮
316+ .content-history-menu {
317+ color : ${ themeVars . color . text . light . num1 } !important ;
318+ .menu .item {
319+ font-size : 12px ;
320+ .ui .avatar {
321+ height : 20px ;
322+ width : 20px ;
323+ }
324+ }
325+ }
326+ }
302327 }
303328 .comment-header-right {
304329 > .item ,
@@ -311,12 +336,6 @@ export const comment = css`
311336 height : 20px ;
312337 padding : 0 6px ;
313338 }
314- // 隐藏顶部菜单的表情按钮
315- // 无法使用此样式, 评论无表情时底部的表情按钮元素不会渲染, 这是一个先有鸡还是先有蛋的问题
316- // 很蛋疼, 希望 Gitea 早日使用 Github 的样式, 因为 Github 的更合理, 无论是操作的方便程度还是按钮的冗余度
317- // .ui.dropdown.action.select-reaction {
318- // display: none;
319- // }
320339 .context-dropdown {
321340 height : 28px ;
322341 padding : 0 6px ;
@@ -526,11 +545,9 @@ export const prMerge = css`
526545 padding : 16px ;
527546 display : grid;
528547 gap : 8px ;
529- & .no-header {
530- & ::before ,
531- & ::after {
532- display : none;
533- }
548+ & ::before ,
549+ & ::after {
550+ display : none;
534551 }
535552 }
536553 }
@@ -555,10 +572,20 @@ export const timeline = css`
555572 & .event {
556573 // 修复覆盖后的位置问题
557574 padding-left : 15px ;
558- .avatar {
575+ // 避免锚中批准的头像
576+ .avatar-with-link .avatar {
559577 width : 20px ;
560578 height : 20px ;
561579 }
580+ // 批准时间的头像
581+ // 头部居中偏移量(头像高度 - 标准行信息高度) / 2: (40px - 32px) / 2 = 4px
582+ .timeline-avatar {
583+ top : -4px ;
584+ }
585+ // bot 标签
586+ .comment-text-line .ui .basic .label {
587+ ${ botLabelStyle }
588+ }
562589 .badge {
563590 border : 2px solid ${ themeVars . color . body } ;
564591 }
@@ -659,6 +686,18 @@ export const issueSidebar = css`
659686 margin-top : 0 !important ;
660687 margin-bottom : 0 !important ;
661688 }
689+ // 评审人
690+ .ui .relaxed .list {
691+ .item {
692+ // 操作图标按钮
693+ a .muted .icon {
694+ color : ${ themeVars . color . text . light . num1 } ;
695+ & : hover {
696+ color : ${ themeVars . color . primary . self } ;
697+ }
698+ }
699+ }
700+ }
662701 // 标签菜单项
663702 .ui .dropdown > .menu > .scrolling .menu > .item : has (.item-secondary-info ) {
664703 // 修复标签菜单中描述文本过长没有换行挤掉标签的问题
0 commit comments