mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-25 04:17:18 +00:00
fix: replace ampersand + (landing page): fix image preview
This commit is contained in:
@@ -38,14 +38,7 @@ export default function Home() {
|
||||
|
||||
<Example>
|
||||
<p style={{fontSize: "1rem", fontWeight: "bold", marginTop: "1rem"}}>Preview</p>
|
||||
{
|
||||
userId.length < 17
|
||||
?
|
||||
<p>Please provide a valid user ID!</p>
|
||||
:
|
||||
<img src={`https://lanyard-profile-readme.vercel.app/api/${userId}`} alt="Discord Presence Preview" />
|
||||
}
|
||||
|
||||
<img src={`https://lanyard-profile-readme.vercel.app/api/${userId}`} alt="[Please provide a valid user ID!]" />
|
||||
</Example>
|
||||
|
||||
</Container>
|
||||
|
||||
@@ -295,7 +295,7 @@ const renderCard = async (body: LanyardTypes.Root, params: Parameters): Promise<
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
color: ${theme === 'dark' ? '#ccc' : '#777'};
|
||||
">By ${body.data.spotify.artist.replace(/\;/g, ",")}</p>
|
||||
">By ${body.data.spotify.artist.replace(/\;/g, ",").replace(/\&/g, "and")}</p>
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user