mirror of
https://iceshrimp.dev/blueb/Chuckya-fe-standalone.git
synced 2026-01-11 13:33:21 -08:00
Fix width only being set for standalone media
This commit is contained in:
parent
3ad3cee44c
commit
d0b2f71501
1 changed files with 1 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ export default class MediaGallery extends React.PureComponent {
|
|||
}
|
||||
|
||||
handleRef = (node) => {
|
||||
if (node && this.isStandaloneEligible()) {
|
||||
if (node /*&& this.isStandaloneEligible()*/) {
|
||||
// offsetWidth triggers a layout, so only calculate when we need to
|
||||
this.setState({
|
||||
width: node.offsetWidth,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue