-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainLayout.razor
35 lines (28 loc) · 1.15 KB
/
MainLayout.razor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@* Copyright (C) Jonathan Shull - See license file at github.com/amytho/pdf-acc-toolset *@
@inherits LayoutComponentBase
<div class="page">
<div class="sidebar bg-slate-700">
<NavMenu OnTagInspectorClicked="OnTagInspectorClicked" />
</div>
<main class="pb-8">
<Topbar />
<article class="content px-4 text-white">
@Body
</article>
<!-- Tag Inspector-->
<div id="tagInspector" class="@((showInspector? "" : "hidden")) fixed z-20 bottom-0 left-0 h-full bg-slate-800 overflow-auto resize-x max-w-full w-1/2" style="min-width: 15%;">
<Pdf_Acc_Toolset.Pages.Inspector.TagInspector OnCloseInspector="OnTagInspectorClicked" />
</div>
<!-- Tag Viewer (relies on inspector) -->
<div class="@((showInspector? "" : "hidden")) fixed z-10 bottom-0 right-0 h-1/4 bg-slate-800 overflow-auto w-1/12 p-4 rounded-md" style="min-width: 15%;">
<Pdf_Acc_Toolset.Pages.Inspector.TagViewer />
</div>
</main>
</div>
@code {
private bool showInspector = false;
private void OnTagInspectorClicked()
{
showInspector = !showInspector;
}
}