Skip to content

Commit 47437b3

Browse files
Styling
1 parent 86012dc commit 47437b3

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

Public/css/common.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
-webkit-user-select: none;
7575
touch-action: manipulation;
7676
font-size: 90%;
77+
font-weight: 600;
7778
}
7879

7980
#debugger-button:hover {

Public/index.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ <h1 class="modal-title fs-5" id="debugger-modal-title">Regex Debugger</h1>
209209
<div class="d-flex">
210210
<input id="debugger-step-range" type="range" class="form-range flex-grow-1" value="1" min="1"
211211
max="100">
212-
<div id="debugger-step-range-max" class="ms-3">100</div>
212+
<div class="ms-3">
213+
<span id="debugger-step-range-max" class="badge rounded-pill text-bg-secondary">100</span>
214+
</div>
213215
</div>
214216
<p class="mb-0" style="text-align: center">
215217
<button id="debugger-go-start" class="btn btn-sm btn-outline-secondary rounded-circle button-circle">
@@ -229,7 +231,9 @@ <h1 class="modal-title fs-5" id="debugger-modal-title">Regex Debugger</h1>
229231
</p>
230232

231233
<div class="my-1" style="font-weight: 600;">Match Step <span id="debugger-match-step"></span></div>
232-
<div id="debugger-regex" class="border mb-3">
234+
<div class="mb-3">
235+
<input id="debugger-regex" type="text" class="form-control form-control-sm border shadow-none"
236+
style="border-radius: 0;" readonly>
233237
</div>
234238

235239
<div class="border my-3">

Public/js/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export class App {
207207
matchStep.textContent = "1";
208208

209209
const debuggerPattern = document.getElementById("debugger-regex");
210-
debuggerPattern.textContent = expression;
210+
debuggerPattern.value = expression;
211211

212212
this.debuggerText.value = text;
213213

@@ -302,7 +302,7 @@ export class App {
302302
const method = "debug";
303303
const params = {
304304
method,
305-
pattern: document.getElementById("debugger-regex").textContent,
305+
pattern: document.getElementById("debugger-regex").value,
306306
text: this.debuggerText.value,
307307
matchOptions: this.matchOptions.value,
308308
step: document.getElementById("debugger-step-range").value,

Public/scss/default.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ $table-cell-padding-y-sm: 0.05rem;
1717
@import "bootstrap/scss/buttons";
1818
@import "bootstrap/scss/transitions";
1919
@import "bootstrap/scss/dropdown";
20+
@import "bootstrap/scss/badge";
2021
@import "bootstrap/scss/close";
2122
@import "bootstrap/scss/modal";
2223

0 commit comments

Comments
 (0)