Make things that should be bound, bound

This commit is contained in:
Justin Edmund 2023-07-03 19:22:45 -07:00
parent c35f954048
commit 2c4d9b1ab5
7 changed files with 18 additions and 0 deletions

View file

@ -50,6 +50,10 @@
&:hover { &:hover {
background-color: var(--select-contained-bg-hover); background-color: var(--select-contained-bg-hover);
&.disabled {
background-color: var(--select-contained-bg);
}
} }
} }

View file

@ -181,6 +181,7 @@ const SelectWithInput = ({
value={`${currentItemSkill ? currentItemSkill.id : 0}`} value={`${currentItemSkill ? currentItemSkill.id : 0}`}
open={open} open={open}
trigger={{ trigger={{
bound: true,
className: 'grow', className: 'grow',
}} }}
disabled={selectDisabled} disabled={selectDisabled}
@ -200,6 +201,7 @@ const SelectWithInput = ({
})} })}
wrapperClassName="fullHeight" wrapperClassName="fullHeight"
type="number" type="number"
bound={true}
placeholder={rangeString()} placeholder={rangeString()}
min={currentItemSkill?.minValue} min={currentItemSkill?.minValue}
max={currentItemSkill?.maxValue} max={currentItemSkill?.maxValue}

View file

@ -189,6 +189,7 @@ const AwakeningSelectWithInput = ({
onOpenChange={changeOpen} onOpenChange={changeOpen}
onClose={onClose} onClose={onClose}
trigger={{ trigger={{
bound: true,
className: 'grow', className: 'grow',
}} }}
overlayVisible={false} overlayVisible={false}
@ -204,6 +205,7 @@ const AwakeningSelectWithInput = ({
currentAwakening === undefined || currentAwakening.id === '0', currentAwakening === undefined || currentAwakening.id === '0',
})} })}
wrapperClassName="fullHeight" wrapperClassName="fullHeight"
bound={true}
type="number" type="number"
placeholder={rangeString()} placeholder={rangeString()}
min={1} min={1}

View file

@ -413,6 +413,7 @@ const AXSelect = (props: Props) => {
value={`${primaryAxModifier}`} value={`${primaryAxModifier}`}
open={openAX1} open={openAX1}
trigger={{ trigger={{
bound: true,
className: 'grow', className: 'grow',
}} }}
onClose={() => onClose(1)} onClose={() => onClose(1)}
@ -429,6 +430,7 @@ const AXSelect = (props: Props) => {
fieldsetClassName={classNames({ fieldsetClassName={classNames({
hidden: primaryAxModifier < 0, hidden: primaryAxModifier < 0,
})} })}
bound={true}
value={ value={
props.currentSkills && props.currentSkills[0] props.currentSkills && props.currentSkills[0]
? props.currentSkills[0].strength ? props.currentSkills[0].strength
@ -449,6 +451,7 @@ const AXSelect = (props: Props) => {
value={`${secondaryAxModifier}`} value={`${secondaryAxModifier}`}
open={openAX2} open={openAX2}
trigger={{ trigger={{
bound: true,
className: 'grow', className: 'grow',
}} }}
onClose={() => onClose(2)} onClose={() => onClose(2)}
@ -465,6 +468,7 @@ const AXSelect = (props: Props) => {
fieldsetClassName={classNames({ fieldsetClassName={classNames({
hidden: secondaryAxModifier < 0, hidden: secondaryAxModifier < 0,
})} })}
bound={true}
value={ value={
props.currentSkills && props.currentSkills[1] props.currentSkills && props.currentSkills[1]
? props.currentSkills[1].strength ? props.currentSkills[1].strength

View file

@ -135,6 +135,7 @@ const ExtendedMasterySelect = ({
onOpenChange={() => changeOpen('left')} onOpenChange={() => changeOpen('left')}
onClose={onClose} onClose={onClose}
trigger={{ trigger={{
bound: true,
className: classNames({ className: classNames({
left: true, left: true,
modal: true, modal: true,
@ -154,6 +155,7 @@ const ExtendedMasterySelect = ({
onClose={onClose} onClose={onClose}
overlayVisible={false} overlayVisible={false}
trigger={{ trigger={{
bound: true,
className: classNames({ className: classNames({
right: true, right: true,
modal: true, modal: true,

View file

@ -154,6 +154,9 @@ const WeaponKeySelect = React.forwardRef<HTMLButtonElement, Props>(
onClose={onClose} onClose={onClose}
onOpenChange={onOpenChange} onOpenChange={onOpenChange}
onValueChange={handleChange} onValueChange={handleChange}
trigger={{
bound: true,
}}
ref={ref} ref={ref}
overlayVisible={false} overlayVisible={false}
> >

View file

@ -3,6 +3,7 @@
flex-direction: column; flex-direction: column;
gap: $unit * 4; gap: $unit * 4;
padding: 0 $unit-4x; padding: 0 $unit-4x;
margin-bottom: $unit-fourth;
section { section {
display: flex; display: flex;