Skip to content

Commit da1b9cf

Browse files
committed
Add readonly spacer
1 parent f00ba9c commit da1b9cf

File tree

1 file changed

+5
-0
lines changed
  • packages/compass-components/src/components/document-list

1 file changed

+5
-0
lines changed

packages/compass-components/src/components/document-list/element.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,10 @@ const elementSpacer = css({
301301
flex: 'none',
302302
});
303303

304+
const readOnlySpacer = css({
305+
width: spacing[900],
306+
});
307+
304308
const elementExpand = css({
305309
width: spacing[3],
306310
flex: 'none',
@@ -567,6 +571,7 @@ export const HadronElement: React.FunctionComponent<{
567571
</div>
568572
</div>
569573
)}
574+
{!editable && <div className={readOnlySpacer} />}
570575
<div className={elementSpacer} style={{ width: elementSpacerWidth }}>
571576
{/* spacer for nested documents */}
572577
</div>

0 commit comments

Comments
 (0)