Skip to content

Commit 2bc083c

Browse files
committed
Moved the explainClaims checkbox and made it a toggle switch
1 parent 62b8278 commit 2bc083c

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

src/Pages/Home/JwtDecoder/JwtDecoder.cshtml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@page "~/jwt-decoder"
1+
@page "~/jwt-decoder"
22
@model IdentityServerHost.Pages.Home.JwtDecoder
33

44
<!-- Google Tag Manager (noscript) -->
@@ -23,9 +23,23 @@
2323
Always be cautious when pasting JWTs, as they may contain credentials or sensitive information.
2424
</div>
2525
</div>
26-
<div class="jwt-decoder-container container-fluid container-lg">
27-
<div class="row align-items-stretch">
28-
<div class="col-12 col-md-6 pb-4 pb-md-0">
26+
<div class="pb-2">
27+
<div class="custom-control custom-switch custom-control-inline">
28+
<input class="custom-control-input" type="checkbox" id="explainClaims">
29+
<label class="custom-control-label" for="explainClaims">
30+
Show claim information
31+
</label>
32+
</div>
33+
<div class="custom-control custom-switch custom-control-inline">
34+
<input class="custom-control-input" type="checkbox" id="togglePresenterMode">
35+
<label class="custom-control-label" for="togglePresenterMode">
36+
Presenter mode
37+
</label>
38+
</div>
39+
</div>
40+
<div class="jwt-decoder-container container-fluid container-lg p-0">
41+
<div class="row-jwt row align-items-stretch">
42+
<div class="col-jwt col-12 col-md-6 pb-4 pb-md-0">
2943
<h3>Encoded JWT</h3>
3044
<div class="h-100 d-flex flex-column">
3145
<div class="form-group flex-grow-1">
@@ -44,12 +58,6 @@
4458
</div>
4559
<div class="col-12 col-md-6 pb-4 pb-md-0">
4660
<h3>Decoded JWT</h3>
47-
<div class="form-check">
48-
<input class="form-check-input" type="checkbox" value="1" id="explainClaims">
49-
<label class="form-check-label" for="explainClaims">
50-
Show claim information
51-
</label>
52-
</div>
5361
<div class="jwt-decoded-output">
5462
<h4>Header</h4>
5563
<pre id="jwt-header" class="jwt-decoded jwt-header bg-dark p-2">&nbsp;</pre>

0 commit comments

Comments
 (0)