diff options
author | Mashiro <moezhx@outlook.com> | 2020-11-03 04:16:38 +0800 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2020-11-04 12:24:40 +0100 |
commit | 40af1cf65bdbe9e6ef5f480b6e03cb1be7db5774 (patch) | |
tree | b19e06a0ec22e13d217a4f5eed901fe1f79b4c87 /app/javascript/flavours/glitch/features/ui/components/image_loader.js | |
parent | f5df3d1ae25846bb4f651c531c5e5c9bffebeaae (diff) |
[Glitch] Add expand/compress image button on image view box
Port 6a2db10f767879b9072b6c020ebadac4f985ed34 to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features/ui/components/image_loader.js')
-rw-r--r-- | app/javascript/flavours/glitch/features/ui/components/image_loader.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/ui/components/image_loader.js b/app/javascript/flavours/glitch/features/ui/components/image_loader.js index 5e1cf75af..c6f16a792 100644 --- a/app/javascript/flavours/glitch/features/ui/components/image_loader.js +++ b/app/javascript/flavours/glitch/features/ui/components/image_loader.js @@ -13,6 +13,7 @@ export default class ImageLoader extends React.PureComponent { width: PropTypes.number, height: PropTypes.number, onClick: PropTypes.func, + zoomButtonHidden: PropTypes.bool, } static defaultProps = { @@ -151,6 +152,9 @@ export default class ImageLoader extends React.PureComponent { alt={alt} src={src} onClick={onClick} + width={width} + height={height} + zoomButtonHidden={this.props.zoomButtonHidden} /> )} </div> |