mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-02 16:23:48 +03:00
add cover
This commit is contained in:
parent
56c3607400
commit
c6da57995d
@ -8,7 +8,7 @@ import { useTranslation } from "react-i18next";
|
||||
import SteamLogo from "@renderer/assets/steam-logo.svg?react";
|
||||
import { useAppSelector, useDate, useUserDetails } from "@renderer/hooks";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { buildGameDetailsPath } from "@renderer/helpers";
|
||||
import { buildGameDetailsPath, steamUrlBuilder } from "@renderer/helpers";
|
||||
import { PersonIcon, TelescopeIcon } from "@primer/octicons-react";
|
||||
import { Button } from "@renderer/components";
|
||||
import { UserEditProfileModal } from "./user-edit-modal";
|
||||
@ -111,15 +111,17 @@ export function UserContent({
|
||||
inset: 0,
|
||||
}}
|
||||
></div>
|
||||
{runningGame && (
|
||||
<div
|
||||
style={{
|
||||
background: `url(${runningGame?.iconUrl})`,
|
||||
background: `url(${steamUrlBuilder.libraryHero(runningGame.objectID)})`,
|
||||
position: "absolute",
|
||||
inset: 0,
|
||||
opacity: 0.1,
|
||||
backgroundSize: "cover",
|
||||
}}
|
||||
></div>
|
||||
)}
|
||||
|
||||
<div className={styles.profileAvatarContainer}>
|
||||
{userProfile.profileImageUrl ? (
|
||||
|
Loading…
Reference in New Issue
Block a user