move into element

This commit is contained in:
nate smith 2024-02-15 22:43:33 -08:00
parent fb03eaf584
commit 87e359217b
2 changed files with 3 additions and 3 deletions

View File

@ -28,6 +28,9 @@ class LineRemover extends Button {
}
class LinePinner extends Button {
connectedCallback() {
this.setAttribute("style", "min-width:4em");
}
click() {
const l = this.closest("div.line");
l.classList.toggle("unpinned");

View File

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