Skip to content

Commit

Permalink
Change chat input from textarea back to input.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed May 15, 2021
1 parent 536f7d4 commit abcf486
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Server/Components/Devices/ChatCard.razor
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@Session?.DeviceName
</h6>
<div class="text-right">
<button class="btn btn-sm btn-secondary" title="Close" @onclick="CloseChatCard" @onclick:stopPropagation="true">
<button class="btn btn-sm btn-secondary" title="Close" @onclick="CloseChatCard" @onclick:stopPropagation>
<i class="oi oi-x pointer"></i>
</button>
</div>
Expand Down Expand Up @@ -64,8 +64,8 @@
}
}
</div>
<textarea class="chat-input"
<input class="chat-input"
@bind="_inputText"
@bind:event="oninput"
@onkeypress="(ev) => EvaluateInputKeypress(ev)"></textarea>
@onkeypress="EvaluateInputKeypress" />
</div>
8 changes: 4 additions & 4 deletions Server/Components/Devices/DeviceCard.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<div @ref="_card" class="card border-secondary my-3 mr-3 device-card @_theme @GetCardStateClass(Device)"
@onclick="ExpandCard"
@onclick:stopPropagation="true"
@onclick:stopPropagation
@oncontextmenu="ContextMenuOpening"
@oncontextmenu:preventDefault="GetCardState() == DeviceCardState.Normal"
@oncontextmenu:stopPropagation="GetCardState() == DeviceCardState.Normal">
Expand Down Expand Up @@ -40,7 +40,7 @@
@if (IsExpanded)
{
<button class="btn btn-sm mr-2" title="Open in New Tab"
@onclick:stopPropagation="true"
@onclick:stopPropagation
@onclick="OpenDeviceDetails">
<i class="oi oi-external-link" style="font-size: 1.3em"></i>
</button>
Expand All @@ -49,7 +49,7 @@
class="align-middle"
checked="@IsSelected"
@onchange="ToggleIsSelected"
@onclick:stopPropagation="true" />
@onclick:stopPropagation />
</div>

</div>
Expand Down Expand Up @@ -127,7 +127,7 @@
<button class="btn btn-link p-0 m-0 expanded-visible"
style="font-size: 50%"
@onclick="ShowAllDisks"
@onclick:stopPropagation="true">
@onclick:stopPropagation>
(View All)
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion Server/Components/ModalHarness.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@inject IJsInterop JsInterop

<div class="modal fade @_showClass" style="display: @_displayStyle; background-color: rgba(0,0,0,0.35)" @onclick="CloseModal">
<div class="modal-dialog modal-dialog-scrollable" role="document" @onclick:stopPropagation="true">
<div class="modal-dialog modal-dialog-scrollable" role="document" @onclick:stopPropagation>
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">@ModalService.Title</h5>
Expand Down
2 changes: 1 addition & 1 deletion Server/Components/TreeView/TreeViewItem.razor
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="@GetActiveClass() pointer tree-view-item"
style="padding-left: @($"{IndentLevel * .5}em"); @Style"
@onclick="OnItemClick"
@onclick:stopPropagation="true">
@onclick:stopPropagation>

<span class="@ItemIconCssSelector.Invoke(Source) mx-2" />
<span>@HeaderSelector.Invoke(Source)</span>
Expand Down

0 comments on commit abcf486

Please sign in to comment.