Skip to content

Commit

Permalink
Allow item titles to wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamMorrow committed Dec 17, 2024
1 parent 03aa66e commit 5374020
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LiftLog.Ui/Shared/Presentation/ItemTitle.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<span class="text-xl font-bold flex-shrink text-ellipsis max-w-full text-nowrap whitespace-nowrap overflow-hidden min-w-0 text-start">@Title</span>
<span class="text-xl font-bold flex-shrink text-ellipsis max-w-full text-pretty overflow-hidden min-w-0 text-start">@Title</span>

@code {
[Parameter][EditorRequired] public string Title { get; set; } = null!;
Expand Down
4 changes: 2 additions & 2 deletions LiftLog.Ui/Shared/Presentation/WeightedExercise.razor
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}
<div class="flex flex-col gap-4 py-4 pl-7 pr-2 w-full" data-cy="weighted-exercise">
<div class="flex flex-col">
<div class="flex justify-between">
<div class="flex items-center justify-between">
<ItemTitle Title="@RecordedExercise.Blueprint.Name" />
@if(!IsReadonly)
{
Expand Down Expand Up @@ -37,7 +37,7 @@
</div>
}
</div>
<div class="self-start -m-3 -mt-6">
<div class="self-start -m-3 -mt-4">
<WeightDisplay
Weight="displayedExercise.Weight"
Increment="displayedExercise.Blueprint.WeightIncreaseOnSuccess"
Expand Down

0 comments on commit 5374020

Please sign in to comment.