Skip to content

Commit

Permalink
[MIRROR] Fixes image onclick [No gbp] [MDB IGNORE] (#25735)
Browse files Browse the repository at this point in the history
* Fixes image onclick [No gbp] (#80441)

## About The Pull Request
Noticed by @ stylemistake: onClick event was not being passed into image
component
## Why It's Good For The Game
Bug fixes
## Changelog
:cl:
fix: Emojipedia should copy the text on click properly, now
/:cl:

* Fixes image onclick [No gbp]

---------

Co-authored-by: Jeremiah <[email protected]>
  • Loading branch information
2 people authored and FFMirrorBot committed Dec 19, 2023
1 parent db8b7c9 commit e77f9b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tgui/packages/tgui/components/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ export const Image = (props: Props) => {
...rest
} = props;

const computedStyle = {
...computeBoxProps(rest).style,
const computedProps = computeBoxProps(rest);
computedProps['style'] = {
...computedProps.style,
'-ms-interpolation-mode': fixBlur ? 'nearest-neighbor' : 'auto',
objectFit,
};

let content = <img className={className} src={src} style={computedStyle} />;
let content = <img className={className} src={src} {...computedProps} />;

if (tooltip) {
content = <Tooltip content={tooltip}>{content}</Tooltip>;
Expand Down

0 comments on commit e77f9b9

Please sign in to comment.