Skip to content

Commit daf5e0a

Browse files
committed
fix: Use a responsive grid layout for the brainstorming cards
Having to awkwardly scroll sideways makes for a frustrating UX
1 parent a56deff commit daf5e0a

File tree

1 file changed

+4
-4
lines changed
  • packages/threat-composer/src/components/brainstorm/BrainstormBoard

1 file changed

+4
-4
lines changed

packages/threat-composer/src/components/brainstorm/BrainstormBoard/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,10 @@ const BrainstormBoardInner: FC<{ onNavigateToThreat?: NavigateToThreatHandler }>
243243
paddingBottom: '8px', // Space for the scrollbar
244244
}}>
245245
<div style={{
246-
display: 'flex',
247-
flexDirection: 'row',
246+
display: 'grid',
247+
gridTemplateColumns: 'repeat(auto-fill, minmax(300px, 1fr))',
248248
gap: '20px',
249-
width: 'fit-content', // Allow container to grow based on content
249+
width: '100%',
250250
}}>
251251
{columnConfig.map(column => {
252252
// Show assumptions and mitigations based on individual visibility
@@ -295,4 +295,4 @@ export const BrainstormBoard: FC<BrainstormBoardProps> = ({ onNavigateToThreat }
295295
);
296296
};
297297

298-
export default BrainstormBoard;
298+
export default BrainstormBoard;

0 commit comments

Comments
 (0)