Skip to content

Commit 0e69d12

Browse files
Debugger icon
1 parent 83d9db1 commit 0e69d12

File tree

5 files changed

+29
-13
lines changed

5 files changed

+29
-13
lines changed

Public/css/common.css

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,24 @@
4545
content: "¬";
4646
}
4747

48-
#match-count {
49-
font-size: 90%;
48+
.dropdown-menu {
49+
min-width: 200px;
5050
}
5151

5252
.button-circle {
5353
width: 2rem;
5454
height: 2rem;
5555
}
5656

57+
.btn:focus {
58+
outline: none;
59+
box-shadow: none;
60+
}
61+
62+
#match-count {
63+
font-size: 90%;
64+
}
65+
5766
#debugger-button {
5867
background-color: rgba(51, 51, 51, 0.05);
5968
border-radius: 15px;
@@ -85,14 +94,6 @@
8594
font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
8695
}
8796

88-
.dropdown-menu {
89-
min-width: 200px;
90-
}
91-
.btn:focus {
92-
outline: none;
93-
box-shadow: none;
94-
}
95-
9697
@media (min-width: 576px) {
9798
.root-container {
9899
height: 100%;

Public/index.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
<div class="col-md-6">
3333
<h1 class="h5 my-2">
3434
<a class="text-decoration-none" href="/">
35-
<span class="fab fa-swift fa-lg text-primary"></span><span class="ms-2 me-1 text-dark">Swift Regex</span>
35+
<span class="fa-brands fa-swift fa-lg text-primary"></span>
36+
<span class="ms-2 me-1 text-dark">Swift Regex</span>
3637
</a>
3738
</h1>
3839
</div>
@@ -144,8 +145,12 @@ <h1 class="h5 my-2">
144145
</div>
145146
<div class="col align-self-center">
146147
<div class="text-end mt-2">
147-
<button id="debugger-button" class="px-3" data-bs-toggle="modal"
148-
data-bs-target="#debugger-modal">Debugger</button>
148+
<button id="debugger-button" class="px-3" data-bs-toggle="modal" data-bs-target="#debugger-modal">
149+
<div data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-container="#debugger-button"
150+
title="Debugger" aria-label="Debugger" style="display: inline-block;">
151+
<span class="fa-solid fa-stethoscope"></span>
152+
</div>
153+
</button>
149154
<span id="match-count" class="text-bg-light border px-3 py-1">no match</span>
150155
</div>
151156
</div>

Public/js/app.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"use strict";
22

3+
import { Tooltip } from "bootstrap";
34
import { ExpressionField } from "./views/expression_field";
45
import { MatchOptions } from "./views/match_options";
56
import { TestEditor } from "./views/test_editor";
@@ -14,6 +15,12 @@ export class App {
1415
}
1516

1617
init() {
18+
[].slice
19+
.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
20+
.map((trigger) => {
21+
return new Tooltip(trigger);
22+
});
23+
1724
this.expressionField = new ExpressionField(
1825
document.getElementById("expression-field-container")
1926
);

Public/js/misc/icons.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { config, library, dom } from "@fortawesome/fontawesome-svg-core";
44
import {
55
faFlag,
66
faOctagonXmark,
7+
faStethoscope,
78
faHeart,
89
faBackwardStep,
910
faForwardStep,
@@ -22,6 +23,7 @@ config.searchPseudoElements = true;
2223
library.add(
2324
faFlag,
2425
faOctagonXmark,
26+
faStethoscope,
2527
faHeart,
2628

2729
faBackwardStep,

Public/scss/default.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ $table-cell-padding-y-sm: 0.05rem;
2020
@import "bootstrap/scss/badge";
2121
@import "bootstrap/scss/close";
2222
@import "bootstrap/scss/modal";
23+
@import "bootstrap/scss/tooltip";
2324

2425
@import "bootstrap/scss/helpers";
2526
@import "bootstrap/scss/utilities/api";

0 commit comments

Comments
 (0)