resolves #306
This commit is contained in:
Alejandro 2023-02-17 17:42:10 +01:00 committed by GitHub
parent 8a3f48b81c
commit 05a363491f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 24 deletions

View File

@ -6,6 +6,7 @@ import { useIntl, FormattedMessage } from "react-intl";
import { TaggedRawEvent } from "@snort/nostr"; import { TaggedRawEvent } from "@snort/nostr";
import { formatShort } from "Number"; import { formatShort } from "Number";
import Repost from "Icons/Repost";
import Dislike from "Icons/Dislike"; import Dislike from "Icons/Dislike";
import Heart from "Icons/Heart"; import Heart from "Icons/Heart";
import ZapIcon from "Icons/Zap"; import ZapIcon from "Icons/Zap";
@ -119,7 +120,7 @@ const Reactions = ({ show, setShow, positive, negative, reposts, zaps }: Reactio
return ( return (
<div key={ev.id} className="reactions-item"> <div key={ev.id} className="reactions-item">
<div className="reaction-icon"> <div className="reaction-icon">
<Heart width={20} height={18} /> <Repost width={16} height={16} />
</div> </div>
<ProfileImage autoWidth={false} pubkey={ev.pubkey} /> <ProfileImage autoWidth={false} pubkey={ev.pubkey} />
</div> </div>

View File

@ -1,12 +1,15 @@
.text { .text {
font-size: var(--font-size); font-size: var(--font-size);
line-height: 24px; line-height: 24px;
white-space: pre-wrap;
word-break: break-word;
} }
.text a { .text a {
color: var(--highlight); color: var(--highlight);
text-decoration: none; text-decoration: none;
} }
.text a:hover { .text a:hover {
text-decoration: underline; text-decoration: underline;
} }

View File

@ -244,28 +244,6 @@
margin-left: 4px; margin-left: 4px;
} }
.banner-bg {
width: 1438px;
height: 758px;
position: absolute;
top: -120px;
left: calc(50% - 750px);
background: radial-gradient(circle at top center, rgba(0, 0, 0, 0.7) 0%, #000000 81.25%), var(--img-url);
filter: blur(10px);
z-index: -1;
display: none;
}
.light .banner-bg {
background: radial-gradient(circle at top center, rgba(241, 241, 241, 0.7) 0%, var(--bg-color) 81.25%), var(--img-url);
}
@media (min-width: 1420px) {
.banner-bg {
display: unset;
}
}
.zaps-total { .zaps-total {
text-align: right; text-align: right;
padding-right: 12px; padding-right: 12px;

View File

@ -316,7 +316,6 @@ export default function ProfilePage() {
return ( return (
<> <>
<div className="profile flex"> <div className="profile flex">
{user?.banner && <div className="banner-bg" style={bannerStyle} />}
{user?.banner && <ProxyImg alt="banner" className="banner" src={user.banner} size={w} />} {user?.banner && <ProxyImg alt="banner" className="banner" src={user.banner} size={w} />}
<div className="profile-wrapper flex"> <div className="profile-wrapper flex">
{avatar()} {avatar()}