Skip to content

Commit 2e71c45

Browse files
committed
use constant for bootstrap class
Signed-off-by: Thijs Baaijen <[email protected]>
1 parent 0d73a51 commit 2e71c45

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/power_grid_model_ds/_core/visualizer/layout/header_legenda.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
from power_grid_model_ds._core.visualizer.layout.colors import CYTO_COLORS
99

10+
_BOOTSTRAP_ARROW_ICON_CLASS = "fas fa-arrow-right-long"
1011
_MARGIN = "0 10px"
1112

1213
LEGENDA_STYLE = {"margin": _MARGIN, "text-shadow": "0 0 5px #000", "justify-content": "center"}
@@ -24,11 +25,11 @@
2425
dbc.Tooltip("Node", target="node-icon", placement="bottom"),
2526
html.I(className="fas fa-diamond", id="substation-icon", style=_SUBSTATION_ICON_STYLE),
2627
dbc.Tooltip("Substation", target="substation-icon", placement="bottom"),
27-
html.I(className="fas fa-arrow-right-long", id="line-icon", style=_LINE_ICON_STYLE),
28+
html.I(className=_BOOTSTRAP_ARROW_ICON_CLASS, id="line-icon", style=_LINE_ICON_STYLE),
2829
dbc.Tooltip("Line", target="line-icon", placement="bottom"),
29-
html.I(className="fas fa-arrow-right-long", id="transformer-icon", style=_TRANSFORMER_ICON_STYLE),
30+
html.I(className=_BOOTSTRAP_ARROW_ICON_CLASS, id="transformer-icon", style=_TRANSFORMER_ICON_STYLE),
3031
dbc.Tooltip("Transformer", target="transformer-icon", placement="bottom"),
31-
html.I(className="fas fa-arrow-right-long", id="link-icon", style=_LINK_ICON_STYLE),
32+
html.I(className=_BOOTSTRAP_ARROW_ICON_CLASS, id="link-icon", style=_LINK_ICON_STYLE),
3233
dbc.Tooltip("Link", target="link-icon", placement="bottom"),
3334
html.I(className="fas fa-ellipsis", id="open-branch-icon", style=_OPEN_BRANCH_ICON_STYLE),
3435
dbc.Tooltip("Open Branch", target="open-branch-icon", placement="bottom"),

0 commit comments

Comments
 (0)