mirror of https://github.com/immich-app/immich.git
fix(web): prevent thumbhashes from covering search bar (#20720)
The thumbhash had a z-index setting which meant it would cover the search bar, and would always cause weird animations when scrolling up in search results. This is fixable by removing the z-index and moving it in front the other elements to get a naturally higher higher z-index preference.pull/20746/head
parent
f1c494ef97
commit
f36efd128b
@ -1,22 +0,0 @@
|
|||||||
import ImageThumbnail from '$lib/components/assets/thumbnail/image-thumbnail.svelte';
|
|
||||||
import { render } from '@testing-library/svelte';
|
|
||||||
|
|
||||||
describe('ImageThumbnail component', () => {
|
|
||||||
beforeAll(() => {
|
|
||||||
Element.prototype.animate = vi.fn().mockImplementation(() => ({
|
|
||||||
cancel: () => {},
|
|
||||||
}));
|
|
||||||
});
|
|
||||||
|
|
||||||
it('shows thumbhash while image is loading', () => {
|
|
||||||
const sut = render(ImageThumbnail, {
|
|
||||||
url: 'http://localhost/img.png',
|
|
||||||
altText: 'test',
|
|
||||||
base64ThumbHash: '1QcSHQRnh493V4dIh4eXh1h4kJUI',
|
|
||||||
widthStyle: '250px',
|
|
||||||
});
|
|
||||||
|
|
||||||
const thumbhash = sut.getByTestId('thumbhash');
|
|
||||||
expect(thumbhash).not.toBeFalsy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
Loading…
Reference in New Issue