show pin status

This commit is contained in:
nate smith 2024-02-13 22:00:17 -08:00
parent 82b289195a
commit 6ff9bbff4f
2 changed files with 13 additions and 1 deletions

View File

@ -18,7 +18,13 @@ class LineRemover extends Button {
class LinePinner extends Button { class LinePinner extends Button {
click() { click() {
this.closest("div.linecontainer").classList.toggle("unpinned"); const l = this.closest("div.linecontainer");
l.classList.toggle("unpinned");
if (l.classList.contains("unpinned")) {
this.innerText = "pin";
} else {
this.innerText = "upin";
}
} }
} }

View File

@ -6,6 +6,12 @@
#blueprint { #blueprint {
display: none; display: none;
} }
div.linecontainer:not(.unpinned) {
font-weight: bold;
}
button[is=line-pinner] {
min-width: 4em;
}
</style> </style>
</head> </head>
<body> <body>