Mobile hotfix

This commit is contained in:
Justin Edmund 2022-12-26 16:50:48 -08:00
parent 39cfc90b44
commit 6ced9f3d08
9 changed files with 54 additions and 4 deletions

View file

@ -22,6 +22,12 @@
text-decoration: underline; text-decoration: underline;
} }
@media (max-width: $phone) {
min-width: inherit;
min-height: inherit;
width: 100%;
}
.DialogHeader { .DialogHeader {
display: flex; display: flex;
align-items: center; align-items: center;

View file

@ -1,5 +1,6 @@
.PartyNavigation { .PartyNavigation {
align-items: center; align-items: center;
box-sizing: border-box;
display: flex; display: flex;
gap: 58px; gap: 58px;
justify-content: center; justify-content: center;
@ -22,6 +23,13 @@
.SegmentedControl { .SegmentedControl {
flex-grow: 1; flex-grow: 1;
@media (max-width: $phone) {
flex-grow: 1;
width: 100%;
display: grid;
grid-template-columns: auto auto auto;
}
} }
} }
} }

View file

@ -8,8 +8,14 @@ button.DropdownLabel {
font-size: $font-small; font-size: $font-small;
gap: $unit-half; gap: $unit-half;
flex-direction: row; flex-direction: row;
justify-content: space-between;
padding: $unit ($unit * 1.5) $unit $unit-2x; padding: $unit ($unit * 1.5) $unit $unit-2x;
div {
display: flex;
gap: $unit-half;
}
&:hover { &:hover {
background: var(--button-contained-bg-hover); background: var(--button-contained-bg-hover);
color: var(--text-primary); color: var(--text-primary);

View file

@ -17,8 +17,10 @@ const SearchFilter = (props: Props) => {
return ( return (
<DropdownMenu.Root open={props.open} onOpenChange={props.onOpenChange}> <DropdownMenu.Root open={props.open} onOpenChange={props.onOpenChange}>
<DropdownMenu.Trigger className="DropdownLabel"> <DropdownMenu.Trigger className="DropdownLabel">
{props.label} <div>
<span className="count">{props.numSelected}</span> {props.label}
<span className="count">{props.numSelected}</span>
</div>
<span className="icon"> <span className="icon">
<ArrowIcon /> <ArrowIcon />
</span> </span>

View file

@ -1,4 +1,5 @@
.Search.Dialog { .Search.Dialog {
box-sizing: border-box;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 431px; min-height: 431px;
@ -7,6 +8,13 @@
gap: 0; gap: 0;
padding: 0; padding: 0;
@media (max-width: $phone) {
min-width: inherit;
min-height: inherit;
width: 96%; // is this even right
height: 96vh;
}
#Header { #Header {
border-bottom: 1px solid transparent; border-bottom: 1px solid transparent;
display: flex; display: flex;
@ -60,6 +68,10 @@
padding: 0 ($unit * 1.5); padding: 0 ($unit * 1.5);
overflow-y: scroll; overflow-y: scroll;
@media (max-width: $phone) {
max-height: inherit;
}
h5.total { h5.total {
font-size: $font-regular; font-size: $font-regular;
font-weight: $normal; font-weight: $normal;

View file

@ -35,6 +35,7 @@
} }
@media (max-width: $phone) { @media (max-width: $phone) {
min-width: auto; min-width: initial;
width: 100%;
} }
} }

View file

@ -10,6 +10,15 @@
font-weight: $medium; font-weight: $medium;
margin-bottom: $unit; margin-bottom: $unit;
text-align: center; text-align: center;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
@media (max-width: $phone) {
&.Friend {
max-width: 78px;
}
}
} }
#grid_summons { #grid_summons {

View file

@ -232,7 +232,7 @@ const SummonGrid = (props: Props) => {
const friendSummonElement = ( const friendSummonElement = (
<div className="LabeledUnit"> <div className="LabeledUnit">
<div className="Label">{t('summons.friend')}</div> <div className="Label Friend">{t('summons.friend')}</div>
<SummonUnit <SummonUnit
gridSummon={grid.summons.friendSummon} gridSummon={grid.summons.friendSummon}
editable={party.editable} editable={party.editable}

View file

@ -290,6 +290,12 @@ i.tag {
display: flex; display: flex;
gap: $unit; gap: $unit;
padding: 0 ($unit * 3); padding: 0 ($unit * 3);
@media (max-width: $phone) {
display: grid;
gap: 8px;
grid-template-columns: 1fr 1fr;
}
} }
@keyframes openModal { @keyframes openModal {