Skip to content

Commit

Permalink
Remove .phone-portrait class
Browse files Browse the repository at this point in the history
  • Loading branch information
bhollis committed Jan 5, 2025
1 parent f2be4f2 commit cfbb649
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 24 deletions.
7 changes: 1 addition & 6 deletions src/app/inventory-page/PhoneStores.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { DimStore } from 'app/inventory/store-types';
import StoreStats from 'app/store-stats/StoreStats';
import { wrap } from 'app/utils/collections';
import { useEventBusListener } from 'app/utils/hooks';
import clsx from 'clsx';
import { PanInfo, motion } from 'motion/react';
import { useCallback, useState } from 'react';
import { InventoryBucket, InventoryBuckets } from '../inventory/inventory-buckets';
Expand Down Expand Up @@ -110,11 +109,7 @@ export default function PhoneStores({
};

return (
<div
className={clsx(styles.content, 'phone-portrait')}
role="main"
aria-label={t('Header.Inventory')}
>
<div className={styles.content} role="main" aria-label={t('Header.Inventory')}>
<HeaderShadowDiv className="store-row store-header">
<PhoneStoresHeader
selectedStore={selectedStore}
Expand Down
27 changes: 14 additions & 13 deletions src/app/store-stats/CharacterStats.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
opacity: 1;
gap: 4px;

@include phone-portrait {
margin-left: auto;
margin-right: auto;
align-items: center;
.stat-row {
width: 100%;
justify-content: center;
}
}

> div {
flex: 1;
display: flex;
Expand Down Expand Up @@ -52,16 +62,6 @@
}
}

.phone-portrait & {
margin-left: auto;
margin-right: auto;
align-items: center;
.stat-row {
width: 100%;
justify-content: center;
}
}

&.destiny2 {
flex-direction: column;
gap: 0;
Expand Down Expand Up @@ -110,14 +110,15 @@
flex: 0;
font-size: 11px;
color: var(--theme-header-characters-txt);

@include phone-portrait {
font-size: 12px;
}
&.boostedValue {
color: $stat-modded;
font-weight: bold;
text-shadow: rgba(0, 0, 0, 0.5) 0 0 2px;
}
.phone-portrait & {
font-size: 12px;
}
}
}

Expand Down
12 changes: 7 additions & 5 deletions src/app/store-stats/StoreStats.m.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use '../variables.scss' as *;

.vaultStats {
max-width: 230px;
display: grid;
Expand All @@ -9,13 +11,13 @@
margin-top: 9px;
color: var(--theme-header-characters-txt);

img {
justify-self: center;
}

:global(.phone-portrait) & {
@include phone-portrait {
flex: 1;
margin-left: auto;
margin-right: auto;
}

img {
justify-self: center;
}
}

0 comments on commit cfbb649

Please sign in to comment.