-
-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9848 from guise/harmonizable-status-by-pattern-pr…
…ogress
- Loading branch information
Showing
16 changed files
with
136 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,10 @@ $horizontal-padding: 11px; | |
|
||
p { | ||
margin-bottom: 0; | ||
|
||
&:first-of-type { | ||
margin: 0; | ||
} | ||
} | ||
|
||
.header { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@use '../variables.scss' as *; | ||
|
||
.deepsightHarmonizerIcon { | ||
flex-grow: 1; | ||
max-width: fit-content; | ||
|
||
img { | ||
display: block; | ||
width: 15px; | ||
height: 15px; | ||
border: 1px solid #999; | ||
margin-right: 4px; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import BungieImage from 'app/dim-ui/BungieImage'; | ||
import { PressTip } from 'app/dim-ui/PressTip'; | ||
import { t } from 'app/i18next-t'; | ||
import { DimItem } from 'app/inventory/item-types'; | ||
import { useD2Definitions } from 'app/manifest/selectors'; | ||
import { DEEPSIGHT_HARMONIZER } from 'app/search/d2-known-values'; | ||
import styles from './DeepSightHarmonizerIcon.m.scss'; | ||
|
||
export function DeepsightHarmonizerIcon({ item }: { item: DimItem }) { | ||
const defs = useD2Definitions()!; | ||
const harmonizerIcon = defs.InventoryItem.get(DEEPSIGHT_HARMONIZER)?.displayProperties.icon; | ||
|
||
return ( | ||
<PressTip | ||
tooltip={<HarmonizableTooltipContent item={item} />} | ||
className={styles.deepsightHarmonizerIcon} | ||
> | ||
<BungieImage src={harmonizerIcon} /> | ||
</PressTip> | ||
); | ||
} | ||
|
||
function HarmonizableTooltipContent({ item }: { item: DimItem }) { | ||
const harmonizableTooltipText = item.tooltipNotifications?.map((t) => t.displayString); | ||
const harmonizableTooltip = ( | ||
<> | ||
<p>{harmonizableTooltipText}</p> | ||
<p> | ||
{t('Filter.FilterWith')} <code>deepsight:harmonizable</code> | ||
</p> | ||
</> | ||
); | ||
|
||
return harmonizableTooltip; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters