sensitive={status.get('sensitive')}
media={status.getIn(['media_attachments', 0])}
letterbox={settings.getIn(['media', 'letterbox'])}
+ fullwidth={settings.getIn(['media', 'fullwidth'])}
height={250}
onOpenVideo={this.props.onOpenVideo}
autoplay
sensitive={status.get('sensitive')}
media={status.get('media_attachments')}
letterbox={settings.getIn(['media', 'letterbox'])}
+ fullwidth={settings.getIn(['media', 'fullwidth'])}
height={250}
onOpenMedia={this.props.onOpenMedia}
autoPlayGif={this.props.autoPlayGif}
@import 'variables';
@import 'variables-glitch';
+@mixin fullwidth-gallery {
+ &.full-width {
+ margin-left: -22px;
+ margin-right: -22px;
+ width: inherit;
+ }
+}
+
.app-body {
-webkit-overflow-scrolling: touch;
-ms-overflow-style: -ms-autohiding-scrollbar;
margin-top: 15px; // Add margin when used bare for NSFW video player
}
- &.full-width {
- margin-left: -68px;
- width: calc(100% + 80px);
- }
+ @include fullwidth-gallery;
}
.media-spoiler__warning {
background: $base-shadow-color;
width: 100%;
- &.full-width {
- margin-left: -68px;
- width: calc(100% + 80px);
- }
-
.detailed-status & {
margin-left:-10px;
width: calc(100% + 22px);
}
+
+ @include fullwidth-gallery;
}
.media-gallery__item {
position: relative;
width: 100%;
- &.full-width {
- margin-left: -68px;
- width: calc(100% + 80px);
- }
+ @include fullwidth-gallery;
}
.status__video-player-video {
position: relative;
width: 100%;
- &.full-width {
- margin-left: -68px;
- width: calc(100% + 80px);
- }
+ @include fullwidth-gallery;
border: 0;
display: block;