diff --git a/components/party/PartyHeader/index.module.scss b/components/party/PartyHeader/index.module.scss index e617331c..c4fbbf0b 100644 --- a/components/party/PartyHeader/index.module.scss +++ b/components/party/PartyHeader/index.module.scss @@ -1,4 +1,4 @@ -.DetailsWrapper { +.wrapper { display: flex; flex-direction: column; gap: $unit-2x; @@ -16,7 +16,7 @@ } } - .PartyDetails { + .details { box-sizing: border-box; display: block; line-height: 1.4; @@ -40,14 +40,6 @@ white-space: pre-line; } - .Tokens { - display: flex; - flex-direction: row; - flex-wrap: wrap; - gap: $unit; - margin-bottom: $unit-2x; - } - .YoutubeWrapper { background-color: var(--card-bg); border-radius: $card-corner; @@ -133,7 +125,7 @@ } } - .PartyInfo { + .info { box-sizing: border-box; display: flex; flex-direction: row; @@ -148,15 +140,10 @@ padding: 0 $unit; } - & > .Right { - display: flex; - gap: $unit-half; - } - - & > .Left { + & > .left { flex-grow: 1; - .Header { + .header { align-items: center; display: flex; gap: $unit; @@ -186,6 +173,11 @@ height: 26px; } + & > *:not(:last-child):after { + content: ' · '; + margin: 0 calc($unit / 2); + } + time { font-size: $font-small; } @@ -202,39 +194,34 @@ color: $blue; } - & > *:not(:last-child):after { - content: ' · '; - margin: 0 calc($unit / 2); + .user { + align-items: center; + display: inline-flex; + gap: calc($unit / 2); + margin-top: 1px; + + img { + $diameter: 24px; + + border-radius: calc($diameter / 2); + height: $diameter; + width: $diameter; + } } } } - .user { - align-items: center; - display: inline-flex; - gap: calc($unit / 2); - margin-top: 1px; - - img, - .no-user { - $diameter: 24px; - - border-radius: calc($diameter / 2); - height: $diameter; - width: $diameter; - } - - img.gran { - background-color: #cee7fe; - } - - img.djeeta { - background-color: #ffe1fe; - } - - .no-user { - background: $grey-80; - } + & > .right { + display: flex; + gap: $unit-half; } } + + .tokens { + display: flex; + flex-direction: row; + flex-wrap: wrap; + gap: $unit; + margin-bottom: $unit-2x; + } } diff --git a/components/party/PartyHeader/index.tsx b/components/party/PartyHeader/index.tsx index 27572c0e..02ee3344 100644 --- a/components/party/PartyHeader/index.tsx +++ b/components/party/PartyHeader/index.tsx @@ -62,13 +62,9 @@ const PartyHeader = (props: Props) => { const [turnCount, setTurnCount] = useState(undefined) const [clearTime, setClearTime] = useState(0) - const classes = classNames({ - PartyDetails: true, - }) - const userClass = classNames({ - user: true, - empty: !party.user, + [styles.user]: true, + [styles.empty]: !party.user, }) const linkClass = classNames({ @@ -243,13 +239,7 @@ const PartyHeader = (props: Props) => { // Render: Tokens const chargeAttackToken = ( - + {`${t('party.details.labels.charge_attack')} ${ party.chargeAttack ? 'On' : 'Off' }`} @@ -257,13 +247,7 @@ const PartyHeader = (props: Props) => { ) const fullAutoToken = ( - + {`${t('party.details.labels.full_auto')} ${ party.fullAuto ? 'On' : 'Off' }`} @@ -271,13 +255,7 @@ const PartyHeader = (props: Props) => { ) const autoGuardToken = ( - + {`${t('party.details.labels.auto_guard')} ${ party.autoGuard ? 'On' : 'Off' }`} @@ -285,13 +263,7 @@ const PartyHeader = (props: Props) => { ) const autoSummonToken = ( - + {`${t('party.details.labels.auto_summon')} ${ party.autoSummon ? 'On' : 'Off' }`} @@ -348,15 +320,16 @@ const PartyHeader = (props: Props) => { function renderTokens() { return ( -
+ <> + {' '} {chargeAttackToken} {fullAutoToken} - {autoGuardToken} {autoSummonToken} + {autoGuardToken} {party.turnCount ? turnCountToken : ''} {party.clearTime > 0 ? clearTimeToken() : ''} {buttonChainToken()} -
+ ) } @@ -394,17 +367,18 @@ const PartyHeader = (props: Props) => { return ( <> -
-
-
-
+
+
+
+

{party.name ? party.name : t('no_title')}

{party.remix && party.sourceParty ? (
-
+
{renderUserBlock()} {appState.party.raid ? linkedRaidBlock(appState.party.raid) : ''} {party.created_at != '' ? (
{party.editable ? ( -
+
{ />
) : ( -
+
{saveButton()} {remixButton()}
)} -
-
{renderTokens()}
-
+
+
{renderTokens()}
+