Skip to content

Commit c6ed77a

Browse files
committed
Put comments back in
1 parent 3191135 commit c6ed77a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/reactComponents/TabContent.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,11 @@ export const TabContent: React.FC<TabContentProps> = ({
168168
setCodePanelAnimating(true);
169169

170170
if (codePanelCollapsed) {
171+
// Expand to previous size
171172
setCodePanelSize(codePanelExpandedSize);
172173
setCodePanelCollapsed(false);
173174
} else {
175+
// Collapse to minimum size - convert current size to pixels for storage
174176
const currentSizePx = typeof codePanelSize === 'string'
175177
? (parseFloat(codePanelSize) / 100) * window.innerWidth
176178
: codePanelSize;
@@ -179,6 +181,7 @@ export const TabContent: React.FC<TabContentProps> = ({
179181
setCodePanelCollapsed(true);
180182
}
181183

184+
// Reset animation flag after transition completes
182185
setTimeout(() => {
183186
setCodePanelAnimating(false);
184187
}, 200);

0 commit comments

Comments
 (0)