Skip to content

Commit

Permalink
Better Size Handling
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdotnet committed Jun 11, 2024
1 parent 5bdbe0f commit e9435a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
<label for="talk-content">Description</label>
<MarkdownTextArea id="talk-content" class="form-control" Rows="10"
@bind-Value="@model.Description"></MarkdownTextArea>
<small for="talk-content" class="form-text text-body-secondary">You can use markdown to style your component.</small>
</div>
<button id="talk-submit" class="btn btn-primary" type="submit">Submit</button>
</EditForm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<label for="short">Short Description</label>
<MarkdownTextArea Id="short" Class="form-control" Rows="4"
@bind-Value="@model.ShortDescription"></MarkdownTextArea>
<small for="short" class="form-text text-body-secondary">You can use markdown to style your component</small>
<ValidationMessage For="() => model.ShortDescription"></ValidationMessage>
</div>
<div class="mb-3">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
Class="@Class"
Value="@Value"
ValueChanged="s => Value = s"
PreviewImagesInEditor="true" data-bs-theme="light"/>
MaxHeight="@Height"
PreviewImagesInEditor="true"/>

@code {
private string textContent = string.Empty;

private string Height => $"{Rows * 25 }px";

#pragma warning disable BL0007
[Parameter]
public string Value
Expand Down

0 comments on commit e9435a7

Please sign in to comment.