diff --git a/instances/widgets.treasury-factory.near/widget/components/OffCanvas.jsx b/instances/widgets.treasury-factory.near/widget/components/OffCanvas.jsx index 8b104421..7d4e5c2f 100644 --- a/instances/widgets.treasury-factory.near/widget/components/OffCanvas.jsx +++ b/instances/widgets.treasury-factory.near/widget/components/OffCanvas.jsx @@ -11,8 +11,10 @@ const children = props.children; const Container = styled.div` opacity: 1 !important; + .offcanvas.offcanvas-end { width: 30% !important; + z-index: 1060; } @media screen and (max-width: 1200px) { @@ -28,14 +30,13 @@ const Container = styled.div` } .offcanvas { - border-top-left-radius: 1rem !important; - border-bottom-left-radius: 1rem !important; overflow: auto; } `; return ( +
- +
{children}
diff --git a/instances/widgets.treasury-factory.near/widget/pages/settings/Thresholds.jsx b/instances/widgets.treasury-factory.near/widget/pages/settings/Thresholds.jsx index 9aec1355..7d059b76 100644 --- a/instances/widgets.treasury-factory.near/widget/pages/settings/Thresholds.jsx +++ b/instances/widgets.treasury-factory.near/widget/pages/settings/Thresholds.jsx @@ -419,11 +419,15 @@ return ( if (isPercentageSelected) { if (number > 100) setValueError("Maximum percentage allowed is 100."); + else if (number < 1) + setValueError("Minimum percentage allowed is 1."); } else { if (number > selectedGroup.members.length) setValueError( `Maximum members allowed is ${selectedGroup.members.length}.` ); + if (number < 1) + setValueError("Minimum members allowed is 1."); } }, value: selectedVoteValue, diff --git a/instances/widgets.treasury-factory.near/widget/pages/stake-delegation/ValidatorsDropDownWithSearch.jsx b/instances/widgets.treasury-factory.near/widget/pages/stake-delegation/ValidatorsDropDownWithSearch.jsx index 558a6eab..19af5226 100644 --- a/instances/widgets.treasury-factory.near/widget/pages/stake-delegation/ValidatorsDropDownWithSearch.jsx +++ b/instances/widgets.treasury-factory.near/widget/pages/stake-delegation/ValidatorsDropDownWithSearch.jsx @@ -45,8 +45,8 @@ const code = `