De-elephanting

This commit is contained in:
Mike Barnes 2024-10-21 20:22:46 +11:00
parent 40e4bdcc47
commit 7867151bd7
5 changed files with 4 additions and 4 deletions

View file

@ -7,11 +7,11 @@ ready(() => {
if (!image) return; if (!image) return;
image.addEventListener('mouseenter', () => { image.addEventListener('mouseenter', () => {
image.src = '/oops.gif'; image.src = '/error-anim.gif';
}); });
image.addEventListener('mouseleave', () => { image.addEventListener('mouseleave', () => {
image.src = '/oops.png'; image.src = '/error-static.png';
}); });
}).catch((e: unknown) => { }).catch((e: unknown) => {
console.error(e); console.error(e);

View file

@ -140,7 +140,7 @@ class BundleColumnError extends PureComponent {
return ( return (
<Column bindToDocument={!multiColumn}> <Column bindToDocument={!multiColumn}>
<div className='error-column'> <div className='error-column'>
<GIF src='/oops.gif' staticSrc='/oops.png' className='error-column__image' /> <GIF src='/error-anim.gif' staticSrc='/error-static.png' className='error-column__image' />
<div className='error-column__message'> <div className='error-column__message'>
<h1>{title}</h1> <h1>{title}</h1>

View file

@ -11,6 +11,6 @@
%body.error %body.error
.dialog .dialog
.dialog__illustration .dialog__illustration
%img{ alt: Setting.default_settings['site_title'], src: '/oops.png' }/ %img{ alt: Setting.default_settings['site_title'], src: '/error-static.png' }/
.dialog__message .dialog__message
%h1= yield :content %h1= yield :content

BIN
public/error-anim.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 997 KiB

BIN
public/error-static.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB