Skip to content

Commit b3eb13b

Browse files
committed
fix: hide snackbar element when not active (was showing as black rectangle)
1 parent 2915369 commit b3eb13b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

whereisit/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: "WhereIsIt"
2-
version: "0.4.29"
2+
version: "0.4.30"
33
slug: "whereisit"
44
description: "Physical storage management for Home Assistant"
55
url: "https://github.com/D3L05/homeassistant-whereisit"

whereisit/frontend/src/views/categories-view.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,19 +216,23 @@ export class CategoriesView extends LitElement {
216216
position: fixed;
217217
bottom: 88px;
218218
left: 50%;
219-
transform: translateX(-50%) translateY(100px);
219+
transform: translateX(-50%) translateY(200px);
220220
background: #323232;
221221
color: white;
222222
padding: 12px 24px;
223223
border-radius: 8px;
224224
font-size: 0.875rem;
225225
box-shadow: 0 4px 12px rgba(0,0,0,0.25);
226226
z-index: 100;
227-
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
227+
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
228228
white-space: nowrap;
229+
opacity: 0;
230+
pointer-events: none;
229231
}
230232
.snackbar.show {
231233
transform: translateX(-50%) translateY(0);
234+
opacity: 1;
235+
pointer-events: auto;
232236
}
233237
`;
234238

0 commit comments

Comments
 (0)