mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-22 10:55:15 -04:00
Fix embed styles in HTML
This commit is contained in:
parent
2b6f01bf6f
commit
cfbd267d3a
2 changed files with 24 additions and 24 deletions
|
@ -233,7 +233,7 @@
|
||||||
@{/* Embed author */}
|
@{/* Embed author */}
|
||||||
@if (embed.Author is not null)
|
@if (embed.Author is not null)
|
||||||
{
|
{
|
||||||
<div class="chatlog__embed-author">
|
<div class="chatlog__embed-author-container">
|
||||||
@if (!string.IsNullOrWhiteSpace(embed.Author.IconUrl))
|
@if (!string.IsNullOrWhiteSpace(embed.Author.IconUrl))
|
||||||
{
|
{
|
||||||
<img class="chatlog__embed-author-icon" src="@await ResolveUrlAsync(embed.Author.IconProxyUrl ?? embed.Author.IconUrl)" alt="Author icon" loading="lazy" onerror="this.style.visibility='hidden'">
|
<img class="chatlog__embed-author-icon" src="@await ResolveUrlAsync(embed.Author.IconProxyUrl ?? embed.Author.IconUrl)" alt="Author icon" loading="lazy" onerror="this.style.visibility='hidden'">
|
||||||
|
@ -241,16 +241,16 @@
|
||||||
|
|
||||||
@if (!string.IsNullOrWhiteSpace(embed.Author.Name))
|
@if (!string.IsNullOrWhiteSpace(embed.Author.Name))
|
||||||
{
|
{
|
||||||
<span class="chatlog__embed-author">
|
if (!string.IsNullOrWhiteSpace(embed.Author.Url))
|
||||||
@if (!string.IsNullOrWhiteSpace(embed.Author.Url))
|
{
|
||||||
{
|
<a class="chatlog__embed-author-link" href="@embed.Author.Url">
|
||||||
<a class="chatlog__embed-author-link" href="@embed.Author.Url">@embed.Author.Name</a>
|
<div class="chatlog__embed-author">@embed.Author.Name</div>
|
||||||
}
|
</a>
|
||||||
else
|
}
|
||||||
{
|
else
|
||||||
@embed.Author.Name
|
{
|
||||||
}
|
<div class="chatlog__embed-author">@embed.Author.Name</div>
|
||||||
</span>
|
}
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
@ -301,7 +301,7 @@
|
||||||
@{/* Embed author */}
|
@{/* Embed author */}
|
||||||
@if (embed.Author is not null)
|
@if (embed.Author is not null)
|
||||||
{
|
{
|
||||||
<div class="chatlog__embed-author">
|
<div class="chatlog__embed-author-container">
|
||||||
@if (!string.IsNullOrWhiteSpace(embed.Author.IconUrl))
|
@if (!string.IsNullOrWhiteSpace(embed.Author.IconUrl))
|
||||||
{
|
{
|
||||||
<img class="chatlog__embed-author-icon" src="@await ResolveUrlAsync(embed.Author.IconProxyUrl ?? embed.Author.IconUrl)" alt="Author icon" loading="lazy" onerror="this.style.visibility='hidden'">
|
<img class="chatlog__embed-author-icon" src="@await ResolveUrlAsync(embed.Author.IconProxyUrl ?? embed.Author.IconUrl)" alt="Author icon" loading="lazy" onerror="this.style.visibility='hidden'">
|
||||||
|
@ -309,16 +309,16 @@
|
||||||
|
|
||||||
@if (!string.IsNullOrWhiteSpace(embed.Author.Name))
|
@if (!string.IsNullOrWhiteSpace(embed.Author.Name))
|
||||||
{
|
{
|
||||||
<span class="chatlog__embed-author">
|
if (!string.IsNullOrWhiteSpace(embed.Author.Url))
|
||||||
@if (!string.IsNullOrWhiteSpace(embed.Author.Url))
|
{
|
||||||
{
|
<a class="chatlog__embed-author-link" href="@embed.Author.Url">
|
||||||
<a class="chatlog__embed-author-link" href="@embed.Author.Url">@embed.Author.Name</a>
|
<div class="chatlog__embed-author">@embed.Author.Name</div>
|
||||||
}
|
</a>
|
||||||
else
|
}
|
||||||
{
|
else
|
||||||
@embed.Author.Name
|
{
|
||||||
}
|
<div class="chatlog__embed-author">@embed.Author.Name</div>
|
||||||
</span>
|
}
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
|
@ -415,7 +415,7 @@
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chatlog__embed-author {
|
.chatlog__embed-author-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-bottom: 0.3rem;
|
margin-bottom: 0.3rem;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -429,7 +429,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.chatlog__embed-author {
|
.chatlog__embed-author {
|
||||||
color: @Themed("#ffffff", "#4f545c")
|
color: @Themed("#ffffff", "#4f545c");
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
direction: ltr;
|
direction: ltr;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue