Skip to content

Commit

Permalink
fix: actionsheet height to be content size
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuzhy-Deriv committed Aug 6, 2024
1 parent 4ef9b9d commit 773e10a
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"@binary-com/binary-document-uploader": "^2.4.4",
"@binary-com/binary-style": "^0.2.26",
"@binary-com/webtrader-charts": "^0.6.1",
"@deriv-com/quill-ui": "^1.13.37",
"@deriv-com/quill-ui": "^1.13.39",
"@deriv/deriv-api": "^1.0.15",
"@deriv/quill-icons": "^1.23.1",
"@livechat/customer-sdk": "4.0.2",
Expand Down
5 changes: 4 additions & 1 deletion src/javascript/app/pages/form/currency-dropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ const CurrencyContent = ({ currency_list, currency, onUpdate, elementId }) => {
);
};
export const CurrencyDropdown = ({ currency_list, currency, onUpdate, elementId }) => (
<CustomDropdown value={currency}>
<CustomDropdown
value={currency}
fullHeightOnOpen={false}
>
<CurrencyContent
currency_list={currency_list}
currency={currency}
Expand Down
6 changes: 5 additions & 1 deletion src/javascript/app/pages/form/dropdown-component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ const DropdownContent = ({ options, value, onUpdate, elementId }) => {
);
};
export const DropdownComponent = ({ label = '', options, value, onUpdate, elementId }) => (
<CustomDropdown value={value} label={label}>
<CustomDropdown
value={value}
label={label}
fullHeightOnOpen={false}
>
<DropdownContent
options={options}
value={value}
Expand Down
1 change: 1 addition & 0 deletions src/javascript/app/pages/form/form-component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export const FormComponent = () => {
onSelectDate={(value) => {
onExpiryDateChange(value);
}}
fullHeightOnOpen={false}
/>
) : (
<DropdownComponent
Expand Down
6 changes: 5 additions & 1 deletion src/javascript/app/pages/form/numbers-dropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ const Content = ({ value, start, end, elementId, onUpdate }) => {
};

export const NumbersDropdown = ({ value, label, start, end, elementId, onUpdate }) => (
<CustomDropdown value={value} label={label}>
<CustomDropdown
value={value}
label={label}
fullHeightOnOpen={false}
>
<Content
value={value}
start={start}
Expand Down
6 changes: 5 additions & 1 deletion src/javascript/app/pages/form/time-selection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ export const TimePickerDropdown = ({
};

return (
<CustomDropdown value={time} onClickDropdown={() => handleOpen(elementId)}>
<CustomDropdown
value={time}
onClickDropdown={() => handleOpen(elementId)}
fullHeightOnOpen={false}
>
<TimeContent
time={time}
onUpdate={onUpdate}
Expand Down
4 changes: 4 additions & 0 deletions src/sass/_common/reskin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ body {
scrollbar-color: rgba(0, 0, 0, 0.08) transparent;
border-radius: var(--core-borderRadius-500);

@media(max-width: 768px){
max-height: unset;
}

&::-webkit-scrollbar {
scrollbar-width: thin;
width: var(--core-size-200);
Expand Down

0 comments on commit 773e10a

Please sign in to comment.