fixed home page nested links (messed with tab order too)
This commit is contained in:
parent
6be8c74837
commit
2acc2916e4
|
@ -60,7 +60,7 @@
|
||||||
@featured.Body[..Math.Min(1000, featured.Body.Length)]
|
@featured.Body[..Math.Min(1000, featured.Body.Length)]
|
||||||
</p>
|
</p>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<ProfilePill Profile="featured.Author" />
|
<ProfilePill Profile="featured.Author" DisableProfileLink="true" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,23 +1,30 @@
|
||||||
@using Wave.Data
|
@using Wave.Data
|
||||||
|
|
||||||
|
@if (!DisableProfileLink) {
|
||||||
<a href="/profile/@Profile.Id">
|
<a href="/profile/@Profile.Id">
|
||||||
<div class="rounded bg-base-200 text-base-content flex content-center w-full sm:w-56">
|
<div class="rounded bg-base-200 text-base-content flex content-center w-full sm:w-56">
|
||||||
<div class="w-16 h-16">
|
<div class="w-16 h-16"><ProfilePictureComponent Size="200" ProfileId="@Profile.Id" /></div>
|
||||||
<ProfilePictureComponent Size="200" ProfileId="@Profile.Id" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex flex-col p-2">
|
<div class="flex flex-col p-2">
|
||||||
<span class="truncate">@Profile.Name</span>
|
<span class="truncate">@Profile.Name</span>
|
||||||
@if (RoleTag is not null) {
|
@if (RoleTag is not null) { <span class="badge badge-sm badge-primary">@RoleTag</span> }
|
||||||
<span class="badge badge-sm badge-primary">@RoleTag</span>
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
} else {
|
||||||
|
<div class="rounded bg-base-200 text-base-content flex content-center w-full sm:w-56">
|
||||||
|
<div class="w-16 h-16"><ProfilePictureComponent Size="200" ProfileId="@Profile.Id" /></div>
|
||||||
|
<div class="flex flex-col p-2">
|
||||||
|
<span class="truncate">@Profile.Name</span>
|
||||||
|
@if (RoleTag is not null) { <span class="badge badge-sm badge-primary">@RoleTag</span> }
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public required ApplicationUser Profile { get; set; }
|
public required ApplicationUser Profile { get; set; }
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public string? RoleTag { get; set; }
|
public string? RoleTag { get; set; }
|
||||||
|
[Parameter]
|
||||||
|
public bool DisableProfileLink { get; set; }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue