🤯 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
🐛 fix(acceptance): stop hover-only row controls from reserving title space (#21602)
LiJian6b330e9c7038
diff --git a/src/features/Acceptance/Viewer/Checks/CheckRow.tsx b/src/features/Acceptance/Viewer/Checks/CheckRow.tsxindex ab30a3be413..435008a9bef 100644--- a/src/features/Acceptance/Viewer/Checks/CheckRow.tsx+++ b/src/features/Acceptance/Viewer/Checks/CheckRow.tsx@@ -388,12 +388,10 @@ export const AcceptanceCheckRow = memo<{horizontalalign={'center'}className={cx(styles.rowActions, 'acceptance-row-actions')}+ // A running accept/ignore spinner stays visible after the pointer leaves.+ data-busy={accepting || ignoring ? '' : undefined}gap={2}- style={{- // The accept spinner must stay visible after the pointer leaves.- ...(accepting ? { opacity: 1 } : undefined),- flex: 'none',- }}+ style={{ flex: 'none' }}><ActionIcondisabled={reviewPending && !accepting}diff --git a/src/features/Acceptance/Viewer/Checks/styles.ts b/src/features/Acceptance/Viewer/Checks/styles.tsindex 684d364cdd7..3478135193a 100644--- a/src/features/Acceptance/Viewer/Checks/styles.ts+++ b/src/features/Acceptance/Viewer/Checks/styles.ts@@ -126,9 +126,26 @@ export const styles = createStaticStyles(({ css }) => ({color: ${cssVar.colorText};}`,+ /**+ * Hover-only controls fade in when they appear. They stay out of the layout+ * (display: none, see rowHeader) until then — an invisible `opacity: 0` strip+ * still kept its width and cut every title short for nothing.+ */rowActions: css`- opacity: 0;- transition: opacity 0.2s;+ @keyframes acceptance-row-reveal {+ from {+ opacity: 0;+ }++ to {+ opacity: 1;+ }+ }++ /* The 24px icons sit inside the 22px title line, so revealing them+ doesn't grow the row and nudge every row below it. */+ height: 22px;+ animation: acceptance-row-reveal 0.2s both;`,rowChevron: css`@media (width <= 767px) {@@ -136,7 +153,7 @@ export const styles = createStaticStyles(({ css }) => ({}`,rowMeta: css`- transition: opacity 0.2s;+ animation: acceptance-row-reveal 0.2s both;@media (width <= 767px) {grid-area: 1 / 3;@@ -148,11 +165,6 @@ export const styles = createStaticStyles(({ css }) => ({display: none;}}-- @media (hover: hover) and (pointer: fine) {- pointer-events: none;- opacity: 0;- }`,rowTitle: css`@media (width <= 767px) {@@ -164,15 +176,18 @@ export const styles = createStaticStyles(({ css }) => ({padding-block: 12px;padding-inline: 16px;- &:hover,- &:focus-within {- .acceptance-row-actions {- opacity: 1;+ /* At rest the row is all title. A pending accept/ignore keeps its spinner+ on screen after the pointer leaves (data-busy). Touch screens have no+ hover, so their meta stays put. */+ &:not(:hover, :focus-within) {+ .acceptance-row-actions:not([data-busy]) {+ display: none;}- .acceptance-row-meta {- pointer-events: auto;- opacity: 1;+ @media (hover: hover) and (pointer: fine) {+ .acceptance-row-meta {+ display: none;+ }}}