Skip to content

Commit

Permalink
fixed view problem with question preview in adaptivity element. restr…
Browse files Browse the repository at this point in the history
…icted comment max character length to 400
  • Loading branch information
splican committed Jul 30, 2024
1 parent d6657d3 commit b276b0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@using BusinessLogic.Validation
@using Presentation.PresentationLogic.LearningContent.AdaptivityContent.Question
@using Presentation.PresentationLogic.LearningContent.AdaptivityContent.Action
<MudCard Outlined="true" Class="bg-adlergrey-200 shadow-xl p-2 m-1 w-72 h-full">
<MudCard Outlined="true" Class="bg-adlergrey-200 shadow-xl p-2 m-1 w-96 max-h-[calc(100dvh-15dvh)] overflow-y-auto">
<MudText Class="text-md font-bold text-adlerdarkblue">
@(Localizer["AdaptivityQuestionPreview.Header.Question." + AdaptivityQuestion.Difficulty])
</MudText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<div class="flex flex-row justify-between">

<div class="flex items-center justify-center">
<MudTooltip Placement="Placement.Top" Duration="double.Epsilon" Style="background: transparent;">
<MudTooltip Placement="Placement.Right" Duration="double.Epsilon" Style="background: transparent;">
<ChildContent>
<MudIconButton Disabled="true" Icon="@Icons.Material.Filled.RemoveRedEye"></MudIconButton>
</ChildContent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
Placeholder="@Localizer["Comment.Label.Text.Placeholder"]"
@bind-Value="_comment"
Lines="4"
MaxLength="400"
Required="true"
RequiredError="@Localizer["Comment.RequiredError.Text"]"/>
</div>
Expand Down

0 comments on commit b276b0f

Please sign in to comment.