fix: Menu linear gradient is the wrong direction on left/right menus (#1553)

* fix: Menu linear gradient is the wrong direction on left/right menus

Also changes the gallery scrolling logic to center the selected element vs top aligned.

* Formatting fix
This commit is contained in:
Dermot Duffy authored and GitHub committed 2024-09-21 15:00:42 -07:00
1 parent e5cbfa9976
commit 9efa873cba
2 files changed
+9 -2

No files matched your search

+3 -1
View File
@@ -485,7 +485,9 @@ export class FrigateCardGalleryCore extends LitElement {
// ... and there is a thumbnail rendered that is selected.
this._refSelected.value
) {
this._refSelected.value.scrollIntoView();
this._refSelected.value.scrollIntoView({
block: 'center',
});
}
});
}