Skip to content

Commit

Permalink
fix: set min-width for the Transfer component in Data dimension modal
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Nov 25, 2024
1 parent 738d38c commit dd67059
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/DataDimension/ItemSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ const ItemSelector = ({
}))

return (
<>
<div className="transfer-container">
<Transfer
onChange={({ selected }) => onChange(selected)}
selected={selectedItems.map((item) => item.value)}
Expand Down Expand Up @@ -560,7 +560,7 @@ const ItemSelector = ({
/>
)}
<style jsx>{styles}</style>
</>
</div>
)
}

Expand Down
3 changes: 3 additions & 0 deletions src/components/styles/DimensionSelector.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { spacers, colors } from '@dhis2/ui'
import css from 'styled-jsx/css'

export default css`
.transfer-container {
min-width: 800px;
}
.filterContainer {
display: flex;
margin-bottom: ${spacers.dp12};
Expand Down

0 comments on commit dd67059

Please sign in to comment.