fix: broken image drag

This commit is contained in:
David Ralph 2023-03-16 12:52:22 +00:00
parent 46c52c3ef1
commit 166926e174
5 changed files with 11 additions and 11 deletions

View File

@ -119,7 +119,7 @@ class Item extends PureComponent {
{this.props.data.data.settings ? (
<img
alt="product"
draggable="false"
draggable={false}
src={iconsrc}
onClick={() => this.setState({ showLightbox: true })}
/>
@ -285,7 +285,7 @@ class Item extends PureComponent {
<img
className="icon"
alt="icon"
draggable="false"
draggable={false}
src={variables.constants.DDG_IMAGE_PROXY + this.props.data.data.icon_url}
/>
{this.props.button}

View File

@ -66,14 +66,14 @@ function Items({
<img
className="item-back"
alt=""
draggable="false"
draggable={false}
src={variables.constants.DDG_IMAGE_PROXY + item.icon_url}
aria-hidden="true"
/>
<img
className="item-icon"
alt="icon"
draggable="false"
draggable={false}
src={variables.constants.DDG_IMAGE_PROXY + item.icon_url}
/>
<div className="card-details">

View File

@ -133,7 +133,7 @@ export default class About extends PureComponent {
</span>
<div className="settingsRow" style={{ justifyContent: 'center' }}>
<div style={{ display: 'flex', flexFlow: 'column', gap: '5px' }}>
<img draggable="false" className="aboutLogo" src={this.state.image} alt="Logo" />
<img draggable={false} className="aboutLogo" src={this.state.image} alt="Logo" />
<span className="title">
{variables.getMessage('modals.main.settings.sections.about.version.title')}{' '}
{variables.constants.VERSION}
@ -290,7 +290,7 @@ export default class About extends PureComponent {
<Tooltip title={login} key={login}>
<a href={'https://github.com/' + login} target="_blank" rel="noopener noreferrer">
<img
draggable="false"
draggable={false}
src={'https://avatars.githubusercontent.com/u/' + id + '?s=128'}
alt={login}
></img>
@ -302,7 +302,7 @@ export default class About extends PureComponent {
this.state.other_contributors.map(({ login, avatar_url }) => (
<Tooltip title={login} key={login}>
<a href={'https://github.com/' + login} target="_blank" rel="noopener noreferrer">
<img draggable="false" src={avatar_url + '&s=128'} alt={login}></img>
<img draggable={false} src={avatar_url + '&s=128'} alt={login}></img>
</a>
</Tooltip>
))
@ -330,7 +330,7 @@ export default class About extends PureComponent {
target="_blank"
rel="noopener noreferrer"
>
<img draggable="false" src={avatar.split('?')[0] + '?s=128'} alt={handle}></img>
<img draggable={false} src={avatar.split('?')[0] + '?s=128'} alt={handle}></img>
</a>
</Tooltip>
);

View File

@ -134,7 +134,7 @@ export default class Changelog extends PureComponent {
</h5>
{this.state.image ? (
<img
draggable="false"
draggable={false}
src={this.state.image}
alt={this.state.title}
className="updateImage"

View File

@ -1,6 +1,6 @@
/* eslint-disable import/first */
if (process.env.NODE_ENV==='development') {
import("preact/debug");
if (process.env.NODE_ENV === 'development') {
import('preact/debug');
}
import { render } from 'preact';