Skip to content

Commit

Permalink
add slight padding to the content and top bar. (#508)
Browse files Browse the repository at this point in the history
* add slight padding to the content and top bar.

* lint

* change the way Content gets its padding applied

* remove unused import

* lint

* lint

* lint
  • Loading branch information
henrikbossart authored Sep 18, 2023
1 parent 1c4b2e0 commit 10b2a44
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions packages/dm-core-plugins/src/view_selector/ViewSelectorPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,20 +146,29 @@ export const ViewSelectorPlugin = (
removeView={removeView}
/>
)}
<Content
<div
style={{
...(internalConfig.asSidebar
? { paddingLeft: '8px' }
: { paddingTop: '8px' }),
paddingRight: '8px',
}}
type={type}
onOpen={addView}
formData={formData}
selectedView={selectedView}
items={views}
setFormData={setFormData}
/>
>
<Content
style={{
...(internalConfig.asSidebar
? { paddingLeft: '8px' }
: { paddingTop: '8px' }),
paddingRight: '8px',
}}
type={type}
onOpen={addView}
formData={formData}
selectedView={selectedView}
items={views}
setFormData={setFormData}
/>
</div>
</div>
)
}

0 comments on commit 10b2a44

Please sign in to comment.