-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Messed with the layout of the continous refresher
- Loading branch information
1 parent
4722588
commit 3afd285
Showing
2 changed files
with
19 additions
and
14 deletions.
There are no files selected for viewing
31 changes: 17 additions & 14 deletions
31
src/SvgHelpers/SvgHelpers/Components/ContinuousImageRefreshComponent.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
@using BlazorMonaco.Editor | ||
@using ProgrammerAl.SvgHelpers.Components.AnimatedComponents | ||
|
||
<div class="flex"> | ||
<button onclick=@(async () => await HandleOpenFileAsync()) | ||
class="border border-black bg-green-800 min-h-12 text-gray-200 p-2"> | ||
Choose File | ||
</button> | ||
</div> | ||
<div class="flex flex-col gap-2"> | ||
<p class="text-sm">Continuously refreshes the image displayed here from your local device. You can edit it in one program, and have this screen open somwehre else to quickly see the changes.</p> | ||
|
||
<div class="flex"> | ||
<button onclick=@(async () => await HandleOpenFileAsync()) | ||
class="border border-black bg-green-800 min-h-12 text-gray-200 p-2"> | ||
Choose File | ||
</button> | ||
</div> | ||
|
||
@if (!string.IsNullOrWhiteSpace(SvgHtml.Value)) | ||
{ | ||
<div> | ||
<p>Last updated: @(LastImageRefreshTime)</p> | ||
<div class="border border-4"> | ||
@SvgHtml | ||
@if (HasImage) | ||
{ | ||
<div> | ||
<p>Last updated: @(LastImageRefreshTime)</p> | ||
<div class="border border-4"> | ||
@SvgHtml | ||
</div> | ||
</div> | ||
</div> | ||
} | ||
} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters