+
{children}
diff --git a/app/javascript/flavours/glitch/features/video/index.jsx b/app/javascript/flavours/glitch/features/video/index.jsx
index 28a8bb1fd7..0a9db059eb 100644
--- a/app/javascript/flavours/glitch/features/video/index.jsx
+++ b/app/javascript/flavours/glitch/features/video/index.jsx
@@ -29,6 +29,7 @@ export const formatTime = secondsNum => {
if (hours < 10) hours = '0' + hours;
if (minutes < 10) minutes = '0' + minutes;
if (seconds < 10) seconds = '0' + seconds;
+
return (hours === '00' ? '' : `${hours}:`) + `${minutes}:${seconds}`;
};
@@ -107,18 +108,18 @@ class Video extends React.PureComponent {
currentTime: PropTypes.number,
onOpenVideo: PropTypes.func,
onCloseVideo: PropTypes.func,
- letterbox: PropTypes.bool,
- fullwidth: PropTypes.bool,
detailed: PropTypes.bool,
inline: PropTypes.bool,
editable: PropTypes.bool,
alwaysVisible: PropTypes.bool,
cacheWidth: PropTypes.func,
- intl: PropTypes.object.isRequired,
visible: PropTypes.bool,
+ letterbox: PropTypes.bool,
+ fullwidth: PropTypes.bool,
+ preventPlayback: PropTypes.bool,
onToggleVisibility: PropTypes.func,
deployPictureInPicture: PropTypes.func,
- preventPlayback: PropTypes.bool,
+ intl: PropTypes.object.isRequired,
blurhash: PropTypes.string,
autoPlay: PropTypes.bool,
volume: PropTypes.number,
@@ -161,7 +162,7 @@ class Video extends React.PureComponent {
_setDimensions () {
const width = this.player.offsetWidth;
- if (width && width != this.state.containerWidth) {
+ if (width && width !== this.state.containerWidth) {
if (this.props.cacheWidth) {
this.props.cacheWidth(width);
}
@@ -403,7 +404,7 @@ class Video extends React.PureComponent {
}
componentDidUpdate (prevProps) {
- if (this.player && this.player.offsetWidth && this.player.offsetWidth != this.state.containerWidth && !this.state.fullscreen) {
+ if (this.player && this.player.offsetWidth && this.player.offsetWidth !== this.state.containerWidth && !this.state.fullscreen) {
if (this.props.cacheWidth) this.props.cacheWidth(this.player.offsetWidth);
this.setState({
containerWidth: this.player.offsetWidth,
@@ -534,7 +535,7 @@ class Video extends React.PureComponent {
return this.props.frameRate.split('/').reduce((p, c) => p / c);
}
- return this.props.frameRate || 25;
+ return this.props.frameRate;
}
render () {
@@ -553,7 +554,7 @@ class Video extends React.PureComponent {
playerStyle.height = height;
} else if (inline) {
- return ();
+ return ();
}
let preload;
@@ -576,6 +577,7 @@ class Video extends React.PureComponent {
return (
{
map.set('in_reply_to', null);
@@ -458,6 +459,7 @@ export default function compose(state = initialState, action) {
map.set('privacy', state.get('default_privacy'));
map.set('id', null);
map.set('poll', null);
+ map.set('language', state.get('default_language'));
map.update(
'advanced_options',
map => map.mergeWith(overwrite, state.get('default_advanced_options')),
diff --git a/app/javascript/flavours/glitch/reducers/local_settings.js b/app/javascript/flavours/glitch/reducers/local_settings.js
index 887e0e135c..3228068626 100644
--- a/app/javascript/flavours/glitch/reducers/local_settings.js
+++ b/app/javascript/flavours/glitch/reducers/local_settings.js
@@ -8,7 +8,6 @@ import { LOCAL_SETTING_CHANGE, LOCAL_SETTING_DELETE } from 'flavours/glitch/acti
const initialState = ImmutableMap({
layout : 'auto',
stretch : true,
- navbar_under : false,
side_arm : 'none',
side_arm_reply_mode : 'keep',
show_reply_count : false,
diff --git a/app/javascript/flavours/glitch/selectors/index.js b/app/javascript/flavours/glitch/selectors/index.js
index fe2d98f08c..22393bf6e2 100644
--- a/app/javascript/flavours/glitch/selectors/index.js
+++ b/app/javascript/flavours/glitch/selectors/index.js
@@ -1,4 +1,3 @@
-import escapeTextContentForBrowser from 'escape-html';
import { createSelector } from 'reselect';
import { List as ImmutableList, Map as ImmutableMap } from 'immutable';
import { toServerSideType } from 'flavours/glitch/utils/filters';
diff --git a/app/javascript/flavours/glitch/styles/accessibility.scss b/app/javascript/flavours/glitch/styles/accessibility.scss
index c7fc74b2ad..68f4f8f1e2 100644
--- a/app/javascript/flavours/glitch/styles/accessibility.scss
+++ b/app/javascript/flavours/glitch/styles/accessibility.scss
@@ -24,9 +24,11 @@ $emojis-requiring-inversion: 'back' 'copyright' 'curly_loop' 'currency_exchange'
position: absolute;
content: '\F00C';
font-size: 50%;
- font-family: FontAwesome;
inset-inline-end: -0.55em;
top: -0.44em;
+
+ /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword -- this is an icon font, this can't use a generic font */
+ font-family: FontAwesome;
}
}
diff --git a/app/javascript/flavours/glitch/styles/accounts.scss b/app/javascript/flavours/glitch/styles/accounts.scss
index 6268135a6c..d10169e02a 100644
--- a/app/javascript/flavours/glitch/styles/accounts.scss
+++ b/app/javascript/flavours/glitch/styles/accounts.scss
@@ -33,7 +33,7 @@
border-radius: 4px 4px 0 0;
}
- @media screen and (max-width: 600px) {
+ @media screen and (width <= 600px) {
height: 200px;
}
}
@@ -162,7 +162,7 @@
color: lighten($inverted-text-color, 10%);
}
- @media screen and (max-width: 700px) {
+ @media screen and (width <= 700px) {
padding: 30px 20px;
.page {
diff --git a/app/javascript/flavours/glitch/styles/admin.scss b/app/javascript/flavours/glitch/styles/admin.scss
index 58223143f2..2adee62d6b 100644
--- a/app/javascript/flavours/glitch/styles/admin.scss
+++ b/app/javascript/flavours/glitch/styles/admin.scss
@@ -1377,7 +1377,7 @@ a.sparkline {
}
}
- @media screen and (max-width: 930px) {
+ @media screen and (width <= 930px) {
grid-template-columns: minmax(0, 1fr);
}
}
@@ -1663,7 +1663,7 @@ a.sparkline {
}
}
- @media screen and (max-width: 800px) {
+ @media screen and (width <= 800px) {
border: 0;
&__item {
diff --git a/app/javascript/flavours/glitch/styles/components/about.scss b/app/javascript/flavours/glitch/styles/components/about.scss
index 7058274736..ba55282969 100644
--- a/app/javascript/flavours/glitch/styles/components/about.scss
+++ b/app/javascript/flavours/glitch/styles/components/about.scss
@@ -136,7 +136,7 @@
margin-bottom: 20px;
}
- @media screen and (max-width: 600px) {
+ @media screen and (width <= 600px) {
display: block;
h4 {
diff --git a/app/javascript/flavours/glitch/styles/components/accounts.scss b/app/javascript/flavours/glitch/styles/components/accounts.scss
index a82f68b51f..6a9c04a968 100644
--- a/app/javascript/flavours/glitch/styles/components/accounts.scss
+++ b/app/javascript/flavours/glitch/styles/components/accounts.scss
@@ -281,7 +281,7 @@
.notification__message {
margin-inline-start: 42px;
- padding-top:8px;
+ padding-top: 8px;
padding-inline-start: 26px;
cursor: default;
color: $darker-text-color;
diff --git a/app/javascript/flavours/glitch/styles/components/columns.scss b/app/javascript/flavours/glitch/styles/components/columns.scss
index f9a5720e51..533c5eda0f 100644
--- a/app/javascript/flavours/glitch/styles/components/columns.scss
+++ b/app/javascript/flavours/glitch/styles/components/columns.scss
@@ -79,7 +79,7 @@ $ui-header-height: 55px;
display: none;
}
- @media screen and (min-width: 320px) {
+ @media screen and (width >= 320px) {
.logo--wordmark {
display: block;
}
@@ -205,7 +205,7 @@ $ui-header-height: 55px;
&:last-child {
padding: 0;
- padding-inline-end: 15px;;
+ padding-inline-end: 15px;
}
}
@@ -441,9 +441,7 @@ $ui-header-height: 55px;
align-items: stretch;
justify-content: space-around;
- button {
- @extend .column-header__button;
-
+ .column-header__button {
background: transparent;
text-align: center;
padding: 10px 5px;
@@ -713,31 +711,6 @@ $ui-header-height: 55px;
}
}
-// more fixes for the navbar-under mode
-@mixin fix-margins-for-navbar-under {
- .tabs-bar {
- margin-top: 0 !important;
- margin-bottom: -6px !important;
- }
-}
-
-.single-column.navbar-under {
- @include fix-margins-for-navbar-under;
-}
-
-.auto-columns.navbar-under {
- @media screen and (max-width: $no-gap-breakpoint) {
- @include fix-margins-for-navbar-under;
- }
-}
-
-.auto-columns.navbar-under .react-swipeable-view-container .columns-area,
-.single-column.navbar-under .react-swipeable-view-container .columns-area {
- @media screen and (max-width: $no-gap-breakpoint) {
- height: 100% !important;
- }
-}
-
.column-inline-form {
padding: 7px 15px;
padding-inline-end: 5px;
@@ -809,7 +782,7 @@ $ui-header-height: 55px;
background: lighten($ui-base-color, 4%);
}
- @media screen and (max-width: 600px) {
+ @media screen and (width <= 600px) {
font-size: 16px;
}
}
diff --git a/app/javascript/flavours/glitch/styles/components/doodle.scss b/app/javascript/flavours/glitch/styles/components/doodle.scss
index c3b67da4a5..eb053c14db 100644
--- a/app/javascript/flavours/glitch/styles/components/doodle.scss
+++ b/app/javascript/flavours/glitch/styles/components/doodle.scss
@@ -1,8 +1,6 @@
$doodle-background: #d9e1e8;
.doodle-modal {
- @extend .boost-modal;
-
width: unset;
}
@@ -16,8 +14,6 @@ $doodle-background: #d9e1e8;
}
.doodle-modal__action-bar {
- @extend .boost-modal__action-bar;
-
.filler {
flex-grow: 1;
margin: 0;
diff --git a/app/javascript/flavours/glitch/styles/components/drawer.scss b/app/javascript/flavours/glitch/styles/components/drawer.scss
index 9e0286beae..af637b69be 100644
--- a/app/javascript/flavours/glitch/styles/components/drawer.scss
+++ b/app/javascript/flavours/glitch/styles/components/drawer.scss
@@ -229,7 +229,7 @@
cursor: inherit;
}
- @media screen and (min-height: 640px) {
+ @media screen and (height >= 640px) {
display: block;
}
}
diff --git a/app/javascript/flavours/glitch/styles/components/lists.scss b/app/javascript/flavours/glitch/styles/components/lists.scss
index d00a1941b3..e173016b67 100644
--- a/app/javascript/flavours/glitch/styles/components/lists.scss
+++ b/app/javascript/flavours/glitch/styles/components/lists.scss
@@ -6,7 +6,7 @@
width: 380px;
overflow: hidden;
- @media screen and (max-width: 420px) {
+ @media screen and (width <= 420px) {
width: 90%;
}
@@ -60,7 +60,7 @@
width: 380px;
overflow: hidden;
- @media screen and (max-width: 420px) {
+ @media screen and (width <= 420px) {
width: 90%;
}
diff --git a/app/javascript/flavours/glitch/styles/components/local_settings.scss b/app/javascript/flavours/glitch/styles/components/local_settings.scss
index dee42bfdd9..cb0b401b49 100644
--- a/app/javascript/flavours/glitch/styles/components/local_settings.scss
+++ b/app/javascript/flavours/glitch/styles/components/local_settings.scss
@@ -125,7 +125,7 @@
margin-bottom: 10px;
}
-@media screen and (max-width: 630px) {
+@media screen and (width <= 630px) {
.glitch.local-settings__navigation {
width: 40px;
flex-shrink: 0;
diff --git a/app/javascript/flavours/glitch/styles/components/misc.scss b/app/javascript/flavours/glitch/styles/components/misc.scss
index f419144648..d6666acd23 100644
--- a/app/javascript/flavours/glitch/styles/components/misc.scss
+++ b/app/javascript/flavours/glitch/styles/components/misc.scss
@@ -827,7 +827,7 @@ body > [data-popper-placement] {
overflow: hidden;
}
-@media screen and (min-width: 631px) {
+@media screen and (width >= 631px) {
.columns-area {
padding: 0;
}
@@ -1134,19 +1134,19 @@ body > [data-popper-placement] {
}
}
- @media screen and (max-height: 810px) {
+ @media screen and (height <= 810px) {
.trends__item:nth-of-type(3) {
display: none;
}
}
- @media screen and (max-height: 720px) {
+ @media screen and (height <= 720px) {
.trends__item:nth-of-type(2) {
display: none;
}
}
- @media screen and (max-height: 670px) {
+ @media screen and (height <= 670px) {
display: none;
}
diff --git a/app/javascript/flavours/glitch/styles/components/modal.scss b/app/javascript/flavours/glitch/styles/components/modal.scss
index 354e5a04fc..c68c5fc53d 100644
--- a/app/javascript/flavours/glitch/styles/components/modal.scss
+++ b/app/javascript/flavours/glitch/styles/components/modal.scss
@@ -115,7 +115,7 @@
text-align: center;
}
-@media screen and (max-width: 550px) {
+@media screen and (width <= 550px) {
.onboarding-modal {
width: 100%;
height: 100%;
@@ -382,7 +382,7 @@
}
}
-@media screen and (max-width: 320px) and (max-height: 600px) {
+@media screen and (width <= 320px) and (height <= 600px) {
.onboarding-modal__page p {
font-size: 14px;
line-height: 20px;
@@ -413,6 +413,7 @@
margin-inline-start: 10px;
}
+.doodle-modal,
.boost-modal,
.confirmation-modal,
.report-modal,
@@ -485,6 +486,7 @@
}
}
+.doodle-modal__action-bar,
.boost-modal__action-bar,
.confirmation-modal__action-bar,
.mute-modal__action-bar,
@@ -560,7 +562,7 @@
font-weight: 700;
margin-bottom: 15px;
- @media screen and (max-height: 800px) {
+ @media screen and (height <= 800px) {
font-size: 22px;
}
}
@@ -747,7 +749,7 @@
display: flex;
border-top: 1px solid $ui-secondary-color;
- @media screen and (max-width: 480px) {
+ @media screen and (width <= 480px) {
flex-wrap: wrap;
overflow-y: auto;
}
@@ -758,7 +760,7 @@
box-sizing: border-box;
width: 50%;
- @media screen and (max-width: 480px) {
+ @media screen and (width <= 480px) {
width: 100%;
}
}
@@ -775,13 +777,13 @@
color: $highlight-text-color;
}
- @media screen and (max-width: 480px) {
+ @media screen and (width <= 480px) {
max-height: 10vh;
}
}
.focal-point-modal__content {
- @media screen and (max-width: 480px) {
+ @media screen and (width <= 480px) {
max-height: 40vh;
}
}
@@ -877,7 +879,7 @@
}
}
- @media screen and (max-width: 480px) {
+ @media screen and (width <= 480px) {
padding: 10px;
max-width: 100%;
order: 2;
@@ -1152,7 +1154,7 @@
background: lighten($ui-base-color, 4%);
}
- @media screen and (max-width: 600px) {
+ @media screen and (width <= 600px) {
font-size: 16px;
}
}
@@ -1233,7 +1235,7 @@
}
}
- @media screen and (max-width: 480px) {
+ @media screen and (width <= 480px) {
img,
video {
max-height: 100%;
diff --git a/app/javascript/flavours/glitch/styles/components/single_column.scss b/app/javascript/flavours/glitch/styles/components/single_column.scss
index 6563fa47b5..2f8f7e2dd2 100644
--- a/app/javascript/flavours/glitch/styles/components/single_column.scss
+++ b/app/javascript/flavours/glitch/styles/components/single_column.scss
@@ -94,7 +94,7 @@
}
}
-@media screen and (min-width: 600px) {
+@media screen and (width >= 600px) {
.tabs-bar__link {
span {
display: inline;
diff --git a/app/javascript/flavours/glitch/styles/containers.scss b/app/javascript/flavours/glitch/styles/containers.scss
index d75ccecee9..4d3d4c546c 100644
--- a/app/javascript/flavours/glitch/styles/containers.scss
+++ b/app/javascript/flavours/glitch/styles/containers.scss
@@ -2,7 +2,7 @@
width: 700px;
margin: 0 auto;
- @media screen and (max-width: 740px) {
+ @media screen and (width <= 740px) {
width: 100%;
margin: 0;
}
@@ -44,7 +44,7 @@
margin-top: 40px;
box-sizing: border-box;
- @media screen and (max-width: 400px) {
+ @media screen and (width <= 400px) {
width: 100%;
margin-top: 0;
padding: 20px;
@@ -64,7 +64,7 @@
margin-bottom: 10px;
border-bottom: 1px solid $ui-base-color;
- @media screen and (max-width: 440px) {
+ @media screen and (width <= 440px) {
width: 100%;
margin: 0;
padding: 20px;
diff --git a/app/javascript/flavours/glitch/styles/dashboard.scss b/app/javascript/flavours/glitch/styles/dashboard.scss
index f25765d1da..bc34c6ec0a 100644
--- a/app/javascript/flavours/glitch/styles/dashboard.scss
+++ b/app/javascript/flavours/glitch/styles/dashboard.scss
@@ -59,7 +59,7 @@
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
grid-gap: 10px;
- @media screen and (max-width: 1350px) {
+ @media screen and (width <= 1350px) {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
diff --git a/app/javascript/flavours/glitch/styles/forms.scss b/app/javascript/flavours/glitch/styles/forms.scss
index f69e8f2767..dbc89a7039 100644
--- a/app/javascript/flavours/glitch/styles/forms.scss
+++ b/app/javascript/flavours/glitch/styles/forms.scss
@@ -723,7 +723,7 @@ code {
}
}
- @media screen and (max-width: 740px) and (min-width: 441px) {
+ @media screen and (width <= 740px) and (width >= 441px) {
margin-top: 40px;
}
diff --git a/app/javascript/flavours/glitch/styles/modal.scss b/app/javascript/flavours/glitch/styles/modal.scss
index 29b1f162b4..0b7220b21d 100644
--- a/app/javascript/flavours/glitch/styles/modal.scss
+++ b/app/javascript/flavours/glitch/styles/modal.scss
@@ -30,7 +30,7 @@
}
}
-@media screen and (max-width: 600px) {
+@media screen and (width <= 600px) {
.account-header {
margin-top: 0;
}
diff --git a/app/javascript/flavours/glitch/styles/statuses.scss b/app/javascript/flavours/glitch/styles/statuses.scss
index 77e9d38bdd..02c6538636 100644
--- a/app/javascript/flavours/glitch/styles/statuses.scss
+++ b/app/javascript/flavours/glitch/styles/statuses.scss
@@ -59,7 +59,7 @@
}
}
- @media screen and (max-width: 740px) {
+ @media screen and (width <= 740px) {
.detailed-status,
.status,
.load-more {
diff --git a/app/javascript/flavours/glitch/styles/tables.scss b/app/javascript/flavours/glitch/styles/tables.scss
index 0c730f1a79..b583d3d8ea 100644
--- a/app/javascript/flavours/glitch/styles/tables.scss
+++ b/app/javascript/flavours/glitch/styles/tables.scss
@@ -357,7 +357,7 @@ a.table-action-link {
}
}
- @media screen and (max-width: 870px) {
+ @media screen and (width <= 870px) {
.accounts-table tbody td.optional {
display: none;
}
diff --git a/app/javascript/styles/fonts/roboto-mono.scss b/app/javascript/styles/fonts/roboto-mono.scss
index 66f3eed9f8..5a7b87dc10 100644
--- a/app/javascript/styles/fonts/roboto-mono.scss
+++ b/app/javascript/styles/fonts/roboto-mono.scss
@@ -3,8 +3,7 @@
src: local('Roboto Mono'),
url('~fonts/roboto-mono/robotomono-regular-webfont.woff2') format('woff2'),
url('~fonts/roboto-mono/robotomono-regular-webfont.woff') format('woff'),
- url('~fonts/roboto-mono/robotomono-regular-webfont.ttf')
- format('truetype'),
+ url('~fonts/roboto-mono/robotomono-regular-webfont.ttf') format('truetype'),
url('~fonts/roboto-mono/robotomono-regular-webfont.svg#roboto_monoregular')
format('svg');
font-weight: 400;
diff --git a/app/javascript/styles/mailer.scss b/app/javascript/styles/mailer.scss
index 18fe522eb2..a12f74fc02 100644
--- a/app/javascript/styles/mailer.scss
+++ b/app/javascript/styles/mailer.scss
@@ -547,7 +547,7 @@ ul.rules-list {
}
}
-@media (max-width: 697px) {
+@media (width <= 697px) {
.email-container,
.col-1,
.col-2,
diff --git a/app/javascript/styles/mastodon/accounts.scss b/app/javascript/styles/mastodon/accounts.scss
index 853d7f70d1..8b7b634071 100644
--- a/app/javascript/styles/mastodon/accounts.scss
+++ b/app/javascript/styles/mastodon/accounts.scss
@@ -33,7 +33,7 @@
border-radius: 4px 4px 0 0;
}
- @media screen and (max-width: 600px) {
+ @media screen and (width <= 600px) {
height: 200px;
}
}
@@ -158,7 +158,7 @@
color: lighten($inverted-text-color, 10%);
}
- @media screen and (max-width: 700px) {
+ @media screen and (width <= 700px) {
padding: 30px 20px;
.page {
diff --git a/app/javascript/styles/mastodon/admin.scss b/app/javascript/styles/mastodon/admin.scss
index acb4baf4f7..a439b0e392 100644
--- a/app/javascript/styles/mastodon/admin.scss
+++ b/app/javascript/styles/mastodon/admin.scss
@@ -1371,7 +1371,7 @@ a.sparkline {
}
}
- @media screen and (max-width: 930px) {
+ @media screen and (width <= 930px) {
grid-template-columns: minmax(0, 1fr);
}
}
@@ -1657,7 +1657,7 @@ a.sparkline {
}
}
- @media screen and (max-width: 800px) {
+ @media screen and (width <= 800px) {
border: 0;
&__item {
diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss
index a7260189d1..4da64c51c9 100644
--- a/app/javascript/styles/mastodon/components.scss
+++ b/app/javascript/styles/mastodon/components.scss
@@ -514,7 +514,7 @@ body > [data-popper-placement] {
outline: 0;
}
- @media screen and (max-width: 600px) {
+ @media screen and (width <= 600px) {
font-size: 16px;
}
}
@@ -535,7 +535,7 @@ body > [data-popper-placement] {
all: unset;
}
- @media screen and (max-width: 600px) {
+ @media screen and (width <= 600px) {
height: 100px !important; // Prevent auto-resize textarea
resize: vertical;
}
@@ -2427,7 +2427,7 @@ $ui-header-height: 55px;
display: none;
}
- @media screen and (min-width: 320px) {
+ @media screen and (width >= 320px) {
.logo--wordmark {
display: block;
}
@@ -2539,7 +2539,7 @@ $ui-header-height: 55px;
overflow: hidden;
}
-@media screen and (min-width: 631px) {
+@media screen and (width >= 631px) {
.columns-area {
padding: 0;
}
@@ -2599,7 +2599,7 @@ $ui-header-height: 55px;
&:hover,
&:focus,
&:active {
- @media screen and (min-width: 631px) {
+ @media screen and (width >= 631px) {
background: lighten($ui-base-color, 14%);
border-bottom-color: lighten($ui-base-color, 14%);
}
@@ -2616,7 +2616,7 @@ $ui-header-height: 55px;
}
}
-@media screen and (min-width: 600px) {
+@media screen and (width >= 600px) {
.tabs-bar__link {
span {
display: inline;
@@ -2839,7 +2839,7 @@ $ui-header-height: 55px;
color: $darker-text-color;
}
- @media screen and (min-width: 600px) {
+ @media screen and (width >= 600px) {
padding: 40px;
}
}
@@ -2949,7 +2949,7 @@ $ui-header-height: 55px;
height: 36px;
color: $dark-text-color;
- @media screen and (min-width: 600px) {
+ @media screen and (width >= 600px) {
display: flex;
}
}
@@ -3001,7 +3001,7 @@ $ui-header-height: 55px;
position: sticky;
background: $ui-base-color;
- @media screen and (min-width: 600) {
+ @media screen and (width >= 600) {
padding: 0 40px;
}
@@ -3269,7 +3269,7 @@ $ui-header-height: 55px;
user-select: none;
}
- @media screen and (min-height: 640px) {
+ @media screen and (height >= 640px) {
display: block;
}
}
@@ -3618,19 +3618,19 @@ $ui-header-height: 55px;
}
}
- @media screen and (max-height: 810px) {
+ @media screen and (height <= 810px) {
.trends__item:nth-of-type(3) {
display: none;
}
}
- @media screen and (max-height: 720px) {
+ @media screen and (height <= 720px) {
.trends__item:nth-of-type(2) {
display: none;
}
}
- @media screen and (max-height: 670px) {
+ @media screen and (height <= 670px) {
display: none;
}
@@ -3714,7 +3714,7 @@ $ui-header-height: 55px;
margin-bottom: 20px;
}
- @media screen and (max-width: 600px) {
+ @media screen and (width <= 600px) {
font-size: 16px;
}
}
@@ -4514,7 +4514,7 @@ a.status-card.compact:hover {
background: lighten($ui-base-color, 4%);
}
- @media screen and (max-width: 600px) {
+ @media screen and (width <= 600px) {
font-size: 16px;
}
}
@@ -5849,7 +5849,7 @@ a.status-card.compact:hover {
font-weight: 700;
margin-bottom: 15px;
- @media screen and (max-height: 800px) {
+ @media screen and (height <= 800px) {
font-size: 22px;
}
}
@@ -6036,7 +6036,7 @@ a.status-card.compact:hover {
display: flex;
border-top: 1px solid $ui-secondary-color;
- @media screen and (max-width: 480px) {
+ @media screen and (width <= 480px) {
flex-wrap: wrap;
overflow-y: auto;
}
@@ -6047,7 +6047,7 @@ a.status-card.compact:hover {
box-sizing: border-box;
width: 50%;
- @media screen and (max-width: 480px) {
+ @media screen and (width <= 480px) {
width: 100%;
}
}
@@ -6069,13 +6069,13 @@ a.status-card.compact:hover {
color: $inverted-text-color;
}
- @media screen and (max-width: 480px) {
+ @media screen and (width <= 480px) {
max-height: 10vh;
}
}
.focal-point-modal__content {
- @media screen and (max-width: 480px) {
+ @media screen and (width <= 480px) {
max-height: 40vh;
}
}
@@ -6126,7 +6126,7 @@ a.status-card.compact:hover {
}
}
- @media screen and (max-width: 480px) {
+ @media screen and (width <= 480px) {
padding: 10px;
max-width: 100%;
order: 2;
@@ -7154,7 +7154,7 @@ noscript {
}
}
-@media screen and (max-width: 630px) and (max-height: 400px) {
+@media screen and (width <= 630px) and (height <= 400px) {
$duration: 400ms;
$delay: 100ms;
@@ -7284,7 +7284,7 @@ noscript {
background: lighten($ui-base-color, 4%);
}
- @media screen and (max-width: 600px) {
+ @media screen and (width <= 600px) {
font-size: 16px;
}
}
@@ -7375,7 +7375,7 @@ noscript {
width: 380px;
overflow: hidden;
- @media screen and (max-width: 420px) {
+ @media screen and (width <= 420px) {
width: 90%;
}
@@ -7430,7 +7430,7 @@ noscript {
width: 380px;
overflow: hidden;
- @media screen and (max-width: 420px) {
+ @media screen and (width <= 420px) {
width: 90%;
}
@@ -7529,7 +7529,7 @@ noscript {
}
}
- @media screen and (max-width: 480px) {
+ @media screen and (width <= 480px) {
img,
video {
max-height: 100%;
@@ -9086,7 +9086,7 @@ noscript {
margin-bottom: 20px;
}
- @media screen and (max-width: 600px) {
+ @media screen and (width <= 600px) {
display: block;
h4 {
diff --git a/app/javascript/styles/mastodon/containers.scss b/app/javascript/styles/mastodon/containers.scss
index fb71ad034a..3d646da239 100644
--- a/app/javascript/styles/mastodon/containers.scss
+++ b/app/javascript/styles/mastodon/containers.scss
@@ -2,7 +2,7 @@
width: 700px;
margin: 0 auto;
- @media screen and (max-width: 740px) {
+ @media screen and (width <= 740px) {
width: 100%;
margin: 0;
}
@@ -44,7 +44,7 @@
margin-top: 40px;
box-sizing: border-box;
- @media screen and (max-width: 400px) {
+ @media screen and (width <= 400px) {
width: 100%;
margin-top: 0;
padding: 20px;
@@ -64,7 +64,7 @@
margin-bottom: 10px;
border-bottom: 1px solid $ui-base-color;
- @media screen and (max-width: 440px) {
+ @media screen and (width <= 440px) {
width: 100%;
margin: 0;
padding: 20px;
diff --git a/app/javascript/styles/mastodon/dashboard.scss b/app/javascript/styles/mastodon/dashboard.scss
index f25765d1da..bc34c6ec0a 100644
--- a/app/javascript/styles/mastodon/dashboard.scss
+++ b/app/javascript/styles/mastodon/dashboard.scss
@@ -59,7 +59,7 @@
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
grid-gap: 10px;
- @media screen and (max-width: 1350px) {
+ @media screen and (width <= 1350px) {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
diff --git a/app/javascript/styles/mastodon/forms.scss b/app/javascript/styles/mastodon/forms.scss
index dc52bcd87d..d17303b854 100644
--- a/app/javascript/styles/mastodon/forms.scss
+++ b/app/javascript/styles/mastodon/forms.scss
@@ -722,7 +722,7 @@ code {
}
}
- @media screen and (max-width: 740px) and (min-width: 441px) {
+ @media screen and (width <= 740px) and (width >= 441px) {
margin-top: 40px;
}
diff --git a/app/javascript/styles/mastodon/modal.scss b/app/javascript/styles/mastodon/modal.scss
index 29b1f162b4..0b7220b21d 100644
--- a/app/javascript/styles/mastodon/modal.scss
+++ b/app/javascript/styles/mastodon/modal.scss
@@ -30,7 +30,7 @@
}
}
-@media screen and (max-width: 600px) {
+@media screen and (width <= 600px) {
.account-header {
margin-top: 0;
}
diff --git a/app/javascript/styles/mastodon/statuses.scss b/app/javascript/styles/mastodon/statuses.scss
index 6c9ea916a2..590d03fb8d 100644
--- a/app/javascript/styles/mastodon/statuses.scss
+++ b/app/javascript/styles/mastodon/statuses.scss
@@ -63,7 +63,7 @@
}
}
- @media screen and (max-width: 740px) {
+ @media screen and (width <= 740px) {
.detailed-status,
.status,
.load-more {
diff --git a/app/javascript/styles/mastodon/tables.scss b/app/javascript/styles/mastodon/tables.scss
index 49e5bbf9fc..38cfc87271 100644
--- a/app/javascript/styles/mastodon/tables.scss
+++ b/app/javascript/styles/mastodon/tables.scss
@@ -361,7 +361,7 @@ a.table-action-link {
}
}
- @media screen and (max-width: 870px) {
+ @media screen and (width <= 870px) {
.accounts-table tbody td.optional {
display: none;
}
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb
index 74ec47a33b..8f5f91ec78 100644
--- a/app/services/post_status_service.rb
+++ b/app/services/post_status_service.rb
@@ -64,14 +64,16 @@ class PostStatusService < BaseService
def fill_blank_text!
return unless @text.blank? && @options[:spoiler_text].present?
- if @media&.any?(&:video?) || @media&.any?(&:gifv?)
- @text = '📹'
- elsif @media&.any?(&:audio?)
- @text = '🎵'
- elsif @media&.any?(&:image?)
- @text = '🖼'
- else
- @text = '.'
+ @text = begin
+ if @media&.any?(&:video?) || @media&.any?(&:gifv?)
+ '📹'
+ elsif @media&.any?(&:audio?)
+ '🎵'
+ elsif @media&.any?(&:image?)
+ '🖼'
+ else
+ '.'
+ end
end
end
diff --git a/config/webpack/shared.js b/config/webpack/shared.js
index 405858d0cd..9bdb60bad5 100644
--- a/config/webpack/shared.js
+++ b/config/webpack/shared.js
@@ -1,11 +1,10 @@
// Note: You must restart bin/webpack-dev-server for changes to take effect
const webpack = require('webpack');
-const { basename, dirname, join, relative, resolve } = require('path');
-const { sync } = require('glob');
+const { resolve } = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const AssetsManifestPlugin = require('webpack-assets-manifest');
-const { env, settings, core, flavours, output } = require('./configuration.js');
+const { env, settings, core, flavours, output } = require('./configuration');
const rules = require('./rules');
const localePacks = require('./generateLocalePacks');
@@ -50,7 +49,7 @@ const entries = Object.assign(
{ locales: resolve('app', 'javascript', 'locales') },
localePacks,
reducePacks(core),
- Object.values(flavours).reduce((map, data) => reducePacks(data, map), {})
+ Object.values(flavours).reduce((map, data) => reducePacks(data, map), {}),
);
diff --git a/config/webpack/translationRunner.js b/config/webpack/translationRunner.js
index c7f84cc7ea..227727bff3 100644
--- a/config/webpack/translationRunner.js
+++ b/config/webpack/translationRunner.js
@@ -95,7 +95,7 @@ const provideExtractedMessages = () => {
originalExtractedMessages.forEach(file => {
file.descriptors.forEach(descriptor => {
- originalKeys.add(descriptor.id)
+ originalKeys.add(descriptor.id);
});
});
diff --git a/streaming/index.js b/streaming/index.js
index 9f1507d276..a5b53ea497 100644
--- a/streaming/index.js
+++ b/streaming/index.js
@@ -373,7 +373,6 @@ const startServer = async () => {
const channelNameFromPath = req => {
const { path, query } = req;
const onlyMedia = isTruthy(query.only_media);
- const allowLocalOnly = isTruthy(query.allow_local_only);
switch (path) {
case '/api/v1/streaming/user':
@@ -990,7 +989,7 @@ const startServer = async () => {
case 'public:media':
resolve({
channelIds: ['timeline:public:media'],
- options: { needsFiltering: true, allowLocalOnly: isTruthy(query.allow_local_only) },
+ options: { needsFiltering: true, allowLocalOnly: isTruthy(params.allow_local_only) },
});
break;