Skip to content

🤯 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.

🐛 fix(review-panel): prevent group header shrink (#16414)

Arvin Xu76d7d7622999
diff --git a/src/routes/(main)/agent/features/Conversation/WorkingSidebar/Review/FileRow.tsx b/src/routes/(main)/agent/features/Conversation/WorkingSidebar/Review/FileRow.tsx
index 7e012e2f2d2..ec4efa229c6 100644
--- a/src/routes/(main)/agent/features/Conversation/WorkingSidebar/Review/FileRow.tsx
+++ b/src/routes/(main)/agent/features/Conversation/WorkingSidebar/Review/FileRow.tsx
@@ -15,6 +15,7 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
implementation. */
content-visibility: auto;
contain-intrinsic-size: auto 32px;
+ flex: none;
/* Every row carries its own top border — separates file-from-file AND
file-from-header without doubling up when a group is collapsed. */
diff --git a/src/routes/(main)/agent/features/Conversation/WorkingSidebar/Review/GroupHeader.tsx b/src/routes/(main)/agent/features/Conversation/WorkingSidebar/Review/GroupHeader.tsx
index 48423093be6..140da6beff2 100644
--- a/src/routes/(main)/agent/features/Conversation/WorkingSidebar/Review/GroupHeader.tsx
+++ b/src/routes/(main)/agent/features/Conversation/WorkingSidebar/Review/GroupHeader.tsx
@@ -24,6 +24,7 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
inset-block-start: 0;
display: flex;
+ flex: none;
gap: 6px;
align-items: center;
@@ -31,7 +32,9 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
so the header stays the same size whether or not the fold button is
rendered. Without this, expanding/collapsing a group would jitter the
sticky header height because the button toggles between rendered and
- not. padding-inline keeps the left-edge alignment with file rows. */
+ not. flex:none keeps the column flex list from compressing the sticky
+ header during expand/collapse. padding-inline keeps the left-edge
+ alignment with file rows. */
block-size: 32px;
padding-inline: 10px;