diff --git a/components/Alert/index.scss b/components/Alert/index.scss index 6a01e10e..aba79f93 100644 --- a/components/Alert/index.scss +++ b/components/Alert/index.scss @@ -22,6 +22,11 @@ max-width: 30vw; padding: $unit * 4; + @include breakpoint(phone) { + max-width: inherit; + width: 60vw; + } + .description { font-size: $font-regular; line-height: 1.4; diff --git a/components/Button/index.scss b/components/Button/index.scss index 994bb041..dd46aa10 100644 --- a/components/Button/index.scss +++ b/components/Button/index.scss @@ -38,6 +38,15 @@ &:hover { background: none; } + + .Text { + font-size: $font-small; + font-weight: $bold; + + @include breakpoint(phone) { + display: none; + } + } } &.Contained { @@ -99,6 +108,17 @@ padding: $unit * 1.5; } + @include breakpoint(phone) { + &.destructive { + background: $error; + color: $grey-100; + + .Accessory svg { + fill: $grey-100; + } + } + } + &.destructive:hover { background: $error; color: $grey-100; diff --git a/components/DropdownMenuContent/index.scss b/components/DropdownMenuContent/index.scss index 7f837fda..ae38f67b 100644 --- a/components/DropdownMenuContent/index.scss +++ b/components/DropdownMenuContent/index.scss @@ -11,8 +11,7 @@ z-index: 15; @include breakpoint(phone) { - left: $unit-2x; - right: $unit-2x; + min-width: 50vw; } } diff --git a/components/GridRep/index.scss b/components/GridRep/index.scss index 5615e2a8..02a480b0 100644 --- a/components/GridRep/index.scss +++ b/components/GridRep/index.scss @@ -137,7 +137,7 @@ .Properties { .full_auto { - color: var(--full-auto-text); + color: var(--full-auto-label-text); } } diff --git a/components/PartyDetails/index.scss b/components/PartyDetails/index.scss index 5a84b90e..0b0fb4c3 100644 --- a/components/PartyDetails/index.scss +++ b/components/PartyDetails/index.scss @@ -1,10 +1,23 @@ .DetailsWrapper { display: flex; flex-direction: column; + gap: $unit-2x; margin: $unit-4x auto 0 auto; max-width: $grid-width; + @include breakpoint(phone) { + .Button:not(.IconButton) { + justify-content: center; + width: 100%; + + .Text { + width: auto; + } + } + } + .PartyDetails { + box-sizing: border-box; display: none; margin: 0 auto $unit-2x; max-width: $unit * 94; @@ -24,6 +37,7 @@ &.Visible { display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } fieldset { @@ -37,6 +51,7 @@ } .SelectTrigger { + padding: $unit-2x; width: 100%; } @@ -45,12 +60,16 @@ grid-template-columns: 1fr 1fr 1fr; gap: $unit; + @include breakpoint(phone) { + grid-template-columns: 1fr; + } + .ToggleSection, .InputSection { align-items: center; display: flex; background: var(--card-bg); - border-radius: $card-corner; + border-radius: $input-corner; & > label { align-items: center; @@ -133,6 +152,11 @@ flex-direction: row; gap: $unit; + @include breakpoint(phone) { + flex-direction: column; + width: 100%; + } + .left { flex-grow: 1; } @@ -141,6 +165,12 @@ display: flex; flex-direction: row; gap: $unit; + + @include breakpoint(phone) { + .Button { + flex-grow: 1; + } + } } } } @@ -167,7 +197,8 @@ .Details { display: flex; flex-direction: row; - gap: $unit-half; + flex-wrap: wrap; + gap: $unit; margin-bottom: $unit-2x; } @@ -258,21 +289,21 @@ } .PartyInfo { - align-items: center; box-sizing: border-box; display: flex; flex-direction: row; gap: $unit; margin: 0 auto; - margin-bottom: $unit * 2; max-width: $unit * 94; width: 100%; @include breakpoint(phone) { + flex-direction: column; + gap: $unit; padding: 0 $unit; } - .Left { + & > .Left { flex-grow: 1; .Header { diff --git a/components/PartyDetails/index.tsx b/components/PartyDetails/index.tsx index bdd5515d..369016be 100644 --- a/components/PartyDetails/index.tsx +++ b/components/PartyDetails/index.tsx @@ -667,15 +667,20 @@ const PartyDetails = (props: Props) => { const readOnly = (
- { - - {`${t('party.details.labels.charge_attack')} ${ - chargeAttack ? 'On' : 'Off' - }`} - - } - {fullAuto ? {t('party.details.labels.full_auto')} : ''} - {autoGuard ? {t('party.details.labels.auto_guard')} : ''} + + {`${t('party.details.labels.charge_attack')} ${ + chargeAttack ? 'On' : 'Off' + }`} + + + + {`${t('party.details.labels.full_auto')} ${fullAuto ? 'On' : 'Off'}`} + + + + {`${t('party.details.labels.auto_guard')} ${fullAuto ? 'On' : 'Off'}`} + + {turnCount ? ( {t('party.details.turns.with_count', { @@ -715,6 +720,7 @@ const PartyDetails = (props: Props) => {