tangled
alpha
login
or
join now
tokono.ma
/
diffuse
5
fork
atom
A music player that connects to your cloud/distributed storage.
5
fork
atom
overview
issues
4
pulls
pipelines
chore: some grid improvements
Steven Vandevelde
1 week ago
b070f7b1
fd7ef76f
+11
-6
1 changed file
expand all
collapse all
unified
split
src
common
pages
grid.js
+11
-6
src/common/pages/grid.js
reviewed
···
178
178
179
179
if (!button || !icon || !uri) continue;
180
180
181
181
-
button.style.opacity = "revert-layer";
182
182
-
183
181
const item = colMap.get(uri);
184
182
const isActive = item && item.html === undefined;
185
183
const isPrelude = li.dataset.kind === "prelude";
186
184
185
185
+
button.style.opacity = "revert-layer";
187
186
button.title = isActive
188
188
-
? (isPrelude ? "Remove feature" : "Remove bookmark")
189
189
-
: (isPrelude ? "Add feature" : "Add bookmark");
187
187
+
? (isPrelude ? "Remove feature" : "Unpin interface")
188
188
+
: (isPrelude ? "Add feature" : "Pin interface");
189
189
+
190
190
icon.className = isActive
191
191
-
? isPrelude ? "ph-bold ph-check" : "ph-fill ph-bookmark-simple"
191
191
+
? isPrelude ? "ph-bold ph-check" : "ph-fill ph-push-pin"
192
192
: isPrelude
193
193
? "ph-bold ph-plus"
194
194
-
: "ph-bold ph-bookmark-simple";
194
194
+
: "ph-bold ph-push-pin";
195
195
+
196
196
+
/** @type {HTMLElement} */ (icon).style.transform = isActive && !isPrelude
197
197
+
? "rotate(-45deg)"
198
198
+
: "";
199
199
+
195
200
/** @type {HTMLElement} */ (icon).style.color = isActive
196
201
? li.dataset.activeColor ?? "var(--accent-twist-2)"
197
202
: "";