🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
💄 style(acceptance): always show the comment reaction button (#19417)
Arvin Xu6b565043c169
diff --git a/src/features/Acceptance/Viewer/Comments/CommentReactions.tsx b/src/features/Acceptance/Viewer/Comments/CommentReactions.tsxindex 88e7590c128..647bb6d6a0e 100644--- a/src/features/Acceptance/Viewer/Comments/CommentReactions.tsx+++ b/src/features/Acceptance/Viewer/Comments/CommentReactions.tsx@@ -88,7 +88,12 @@ const styles = createStaticStyles(({ css }) => ({background: ${cssVar.colorFillSecondary};}`,- /** The add button, quiet until the comment is hovered — GitHub's behaviour. */+ /**+ * The add button stands on its own rather than waiting for a hover: reacting+ * is the cheapest way to answer a delivery, and an affordance you have to+ * find by sweeping the mouse is one most readers never find at all. Quiet by+ * default, it darkens under the cursor.+ */trigger: css`cursor: pointer;@@ -103,23 +108,14 @@ const styles = createStaticStyles(({ css }) => ({color: ${cssVar.colorTextTertiary};- opacity: 0;-- transition: opacity ${cssVar.motionDurationFast};+ transition: color ${cssVar.motionDurationFast};&:hover,&[data-open] {color: ${cssVar.colorText};- opacity: 1;- }-- @media (hover: none) {- opacity: 1;+ background: ${cssVar.colorFillQuaternary};}`,- triggerVisible: css`- opacity: 1;- `,}));interface CommentReactionsProps {@@ -211,7 +207,7 @@ const CommentReactions = memo<CommentReactionsProps>(({ onReact, reactions }) =>><spandata-comment-reaction-add- className={cx(styles.trigger, open && styles.triggerVisible)}+ className={styles.trigger}title={t('acceptance.comments.addReaction')}{...(open ? { 'data-open': '' } : {})}>diff --git a/src/features/Acceptance/Viewer/Comments/styles.ts b/src/features/Acceptance/Viewer/Comments/styles.tsindex 800c386a233..6ef3c0bbcdc 100644--- a/src/features/Acceptance/Viewer/Comments/styles.ts+++ b/src/features/Acceptance/Viewer/Comments/styles.ts@@ -255,8 +255,7 @@ export const styles = createStaticStyles(({ css }) => ({background: ${cssVar.colorBorderSecondary};}- &:hover [data-comment-actions],- &:hover [data-comment-reaction-add] {+ &:hover [data-comment-actions] {opacity: 1;}