Merge pull request #208 from jedmund/update-updates
Various small fixes and improvements
This commit is contained in:
commit
0c11b13aca
12 changed files with 76 additions and 9 deletions
|
|
@ -14,6 +14,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.MenuLabel {
|
||||||
|
color: var(--text-tertiary);
|
||||||
|
padding: $unit * 1.5 $unit * 1.5;
|
||||||
|
font-size: $font-small;
|
||||||
|
font-weight: $medium;
|
||||||
|
}
|
||||||
|
|
||||||
.MenuItem {
|
.MenuItem {
|
||||||
color: var(--text-tertiary);
|
color: var(--text-tertiary);
|
||||||
font-weight: $normal;
|
font-weight: $normal;
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,16 @@ const GridRep = (props: Props) => {
|
||||||
src={`/profile/${props.user.avatar.picture}.png`}
|
src={`/profile/${props.user.avatar.picture}.png`}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
} else return <div className="no-user" />
|
} else
|
||||||
|
return (
|
||||||
|
<img
|
||||||
|
alt={t('no_user')}
|
||||||
|
className={`profile anonymous`}
|
||||||
|
srcSet={`/profile/npc.png,
|
||||||
|
/profile/npc@2x.png 2x`}
|
||||||
|
src={`/profile/npc.png`}
|
||||||
|
/>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const linkedAttribution = () => (
|
const linkedAttribution = () => (
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ import {
|
||||||
DropdownMenuGroup,
|
DropdownMenuGroup,
|
||||||
DropdownMenuItem,
|
DropdownMenuItem,
|
||||||
DropdownMenuSeparator,
|
DropdownMenuSeparator,
|
||||||
|
DropdownMenuLabel,
|
||||||
} from '~components/DropdownMenuContent'
|
} from '~components/DropdownMenuContent'
|
||||||
import LoginModal from '~components/LoginModal'
|
import LoginModal from '~components/LoginModal'
|
||||||
import SignupModal from '~components/SignupModal'
|
import SignupModal from '~components/SignupModal'
|
||||||
|
|
@ -248,7 +249,15 @@ const Header = () => {
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
image = <div className="profile placeholder" />
|
image = (
|
||||||
|
<img
|
||||||
|
alt={t('no_user')}
|
||||||
|
className={`profile anonymous`}
|
||||||
|
srcSet={`/profile/npc.png,
|
||||||
|
/profile/npc@2x.png 2x`}
|
||||||
|
src={`/profile/npc.png`}
|
||||||
|
/>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return image
|
return image
|
||||||
|
|
@ -422,7 +431,7 @@ const Header = () => {
|
||||||
href={`/${accountState.account.user.username}` || ''}
|
href={`/${accountState.account.user.username}` || ''}
|
||||||
passHref
|
passHref
|
||||||
>
|
>
|
||||||
Your profile
|
<span>{t('menu.profile')}</span>
|
||||||
</Link>
|
</Link>
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
<DropdownMenuItem className="MenuItem" onClick={closeLeftMenu}>
|
<DropdownMenuItem className="MenuItem" onClick={closeLeftMenu}>
|
||||||
|
|
@ -473,6 +482,9 @@ const Header = () => {
|
||||||
items = (
|
items = (
|
||||||
<>
|
<>
|
||||||
<DropdownMenuGroup className="MenuGroup">
|
<DropdownMenuGroup className="MenuGroup">
|
||||||
|
<DropdownMenuLabel className="MenuLabel">
|
||||||
|
{account.user ? `@${account.user.username}` : t('no_user')}
|
||||||
|
</DropdownMenuLabel>
|
||||||
<DropdownMenuItem className="MenuItem">
|
<DropdownMenuItem className="MenuItem">
|
||||||
<Link href="/new">
|
<Link href="/new">
|
||||||
<a onClick={(e: React.MouseEvent) => handleNewParty(e, '/new')}>
|
<a onClick={(e: React.MouseEvent) => handleNewParty(e, '/new')}>
|
||||||
|
|
@ -482,7 +494,7 @@ const Header = () => {
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
<DropdownMenuItem className="MenuItem">
|
<DropdownMenuItem className="MenuItem">
|
||||||
<Link href={`/${account.user.username}` || ''} passHref>
|
<Link href={`/${account.user.username}` || ''} passHref>
|
||||||
Your profile
|
<span>{t('menu.profile')}</span>
|
||||||
</Link>
|
</Link>
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
</DropdownMenuGroup>
|
</DropdownMenuGroup>
|
||||||
|
|
|
||||||
|
|
@ -403,7 +403,16 @@ const PartyDetails = (props: Props) => {
|
||||||
src={`/profile/${picture}.png`}
|
src={`/profile/${picture}.png`}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
else return <div className="no-user" />
|
else
|
||||||
|
return (
|
||||||
|
<img
|
||||||
|
alt={t('no_user')}
|
||||||
|
className={`profile anonymous`}
|
||||||
|
srcSet={`/profile/npc.png,
|
||||||
|
/profile/npc@2x.png 2x`}
|
||||||
|
src={`/profile/npc.png`}
|
||||||
|
/>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const userBlock = (username?: string, picture?: string, element?: string) => {
|
const userBlock = (username?: string, picture?: string, element?: string) => {
|
||||||
|
|
@ -691,20 +700,36 @@ const PartyDetails = (props: Props) => {
|
||||||
<section className={readOnlyClasses}>
|
<section className={readOnlyClasses}>
|
||||||
<section className="Details">
|
<section className="Details">
|
||||||
<Token
|
<Token
|
||||||
className={classNames({ ChargeAttack: true, On: chargeAttack })}
|
className={classNames({
|
||||||
|
ChargeAttack: true,
|
||||||
|
On: chargeAttack,
|
||||||
|
Off: !chargeAttack,
|
||||||
|
})}
|
||||||
>
|
>
|
||||||
{`${t('party.details.labels.charge_attack')} ${
|
{`${t('party.details.labels.charge_attack')} ${
|
||||||
chargeAttack ? 'On' : 'Off'
|
chargeAttack ? 'On' : 'Off'
|
||||||
}`}
|
}`}
|
||||||
</Token>
|
</Token>
|
||||||
|
|
||||||
<Token className={classNames({ FullAuto: true, On: fullAuto })}>
|
<Token
|
||||||
|
className={classNames({
|
||||||
|
FullAuto: true,
|
||||||
|
On: fullAuto,
|
||||||
|
Off: !fullAuto,
|
||||||
|
})}
|
||||||
|
>
|
||||||
{`${t('party.details.labels.full_auto')} ${
|
{`${t('party.details.labels.full_auto')} ${
|
||||||
fullAuto ? 'On' : 'Off'
|
fullAuto ? 'On' : 'Off'
|
||||||
}`}
|
}`}
|
||||||
</Token>
|
</Token>
|
||||||
|
|
||||||
<Token className={classNames({ AutoGuard: true, On: autoGuard })}>
|
<Token
|
||||||
|
className={classNames({
|
||||||
|
AutoGuard: true,
|
||||||
|
On: autoGuard,
|
||||||
|
Off: !autoGuard,
|
||||||
|
})}
|
||||||
|
>
|
||||||
{`${t('party.details.labels.auto_guard')} ${
|
{`${t('party.details.labels.auto_guard')} ${
|
||||||
fullAuto ? 'On' : 'Off'
|
fullAuto ? 'On' : 'Off'
|
||||||
}`}
|
}`}
|
||||||
|
|
|
||||||
|
|
@ -22,4 +22,8 @@
|
||||||
background: var(--auto-guard-bg);
|
background: var(--auto-guard-bg);
|
||||||
color: var(--auto-guard-text);
|
color: var(--auto-guard-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.Off {
|
||||||
|
color: var(--text-secondary);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -303,6 +303,7 @@
|
||||||
"language": "Language",
|
"language": "Language",
|
||||||
"login": "Log in",
|
"login": "Log in",
|
||||||
"roadmap": "Roadmap",
|
"roadmap": "Roadmap",
|
||||||
|
"profile": "Your profile",
|
||||||
"saved": "Saved",
|
"saved": "Saved",
|
||||||
"settings": "Settings",
|
"settings": "Settings",
|
||||||
"signup": "Sign up",
|
"signup": "Sign up",
|
||||||
|
|
|
||||||
|
|
@ -303,6 +303,7 @@
|
||||||
"guides": "攻略",
|
"guides": "攻略",
|
||||||
"language": "言語",
|
"language": "言語",
|
||||||
"login": "ログイン",
|
"login": "ログイン",
|
||||||
|
"profile": "プロフィール",
|
||||||
"roadmap": "ロードマップ",
|
"roadmap": "ロードマップ",
|
||||||
"saved": "保存した編成",
|
"saved": "保存した編成",
|
||||||
"settings": "アカウント設定",
|
"settings": "アカウント設定",
|
||||||
|
|
|
||||||
BIN
public/profile/npc.png
Normal file
BIN
public/profile/npc.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 98 KiB |
BIN
public/profile/npc@2x.png
Normal file
BIN
public/profile/npc@2x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 103 KiB |
|
|
@ -249,6 +249,10 @@ img.profile {
|
||||||
&.light {
|
&.light {
|
||||||
background: $light-bg-20;
|
background: $light-bg-20;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.anonymous {
|
||||||
|
background: var(--anonymous-bg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
i.tag {
|
i.tag {
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
--selected-item-bg: #{$selected--item--bg--light};
|
--selected-item-bg: #{$selected--item--bg--light};
|
||||||
--selected-item-bg-hover: #{$selected--item--bg--light--hover};
|
--selected-item-bg-hover: #{$selected--item--bg--light--hover};
|
||||||
|
--anonymous-bg: #{$anonymous--bg--light};
|
||||||
--placeholder-bg: #{$grey-80};
|
--placeholder-bg: #{$grey-80};
|
||||||
|
|
||||||
// Light - Menus
|
// Light - Menus
|
||||||
|
|
@ -164,6 +164,7 @@
|
||||||
--selected-item-bg: #{$selected--item--bg--dark};
|
--selected-item-bg: #{$selected--item--bg--dark};
|
||||||
--selected-item-bg-hover: #{$selected--item--bg--dark--hover};
|
--selected-item-bg-hover: #{$selected--item--bg--dark--hover};
|
||||||
|
|
||||||
|
--anonymous-bg: #{$anonymous--bg--dark};
|
||||||
--placeholder-bg: #{$grey-40};
|
--placeholder-bg: #{$grey-40};
|
||||||
|
|
||||||
// Dark - Dialogs
|
// Dark - Dialogs
|
||||||
|
|
|
||||||
|
|
@ -148,6 +148,9 @@ $page--element--bg--dark: $grey-40;
|
||||||
$separator--bg--light: $grey-90;
|
$separator--bg--light: $grey-90;
|
||||||
$separator--bg--dark: $grey-15;
|
$separator--bg--dark: $grey-15;
|
||||||
|
|
||||||
|
$anonymous--bg--light: $grey-80;
|
||||||
|
$anonymous--bg--dark: $grey-40;
|
||||||
|
|
||||||
// Color Definitions: Dialog
|
// Color Definitions: Dialog
|
||||||
$dialog--bg--light: $grey-100;
|
$dialog--bg--light: $grey-100;
|
||||||
$dialog--bg--dark: $grey-25;
|
$dialog--bg--dark: $grey-25;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue