From 87e359217b108eb1f37cf157b97110b6e358defe Mon Sep 17 00:00:00 2001 From: nate smith Date: Thu, 15 Feb 2024 22:43:33 -0800 Subject: [PATCH] move into element --- assets/main.js | 3 +++ templates/index.tmpl | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/main.js b/assets/main.js index f3374cd..3181958 100644 --- a/assets/main.js +++ b/assets/main.js @@ -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"); diff --git a/templates/index.tmpl b/templates/index.tmpl index 8043861..c1cdf29 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -6,9 +6,6 @@ div.line:not(.unpinned) { font-weight: bold; } - button[is=line-pinner] { - min-width: 4em; - }