@@ -379,20 +354,34 @@ export const DetailedStatus: React.FC<{
)}
-
+
+ {media}
+ {hashtagBar}
+ >
+ )}
+
+ {/* This is a glitch-soc addition to have a placeholder */}
+ {!expanded &&
diff --git a/app/javascript/flavours/glitch/locales/en.json b/app/javascript/flavours/glitch/locales/en.json
index 3d2a082f5de5f5..6384a971877806 100644
--- a/app/javascript/flavours/glitch/locales/en.json
+++ b/app/javascript/flavours/glitch/locales/en.json
@@ -68,8 +68,6 @@
"settings.content_warnings": "Content Warnings",
"settings.content_warnings.regexp": "Regular expression",
"settings.content_warnings_filter": "Content warnings to not automatically unfold:",
- "settings.content_warnings_media_outside": "Display media attachments outside content warnings",
- "settings.content_warnings_media_outside_hint": "Reproduce upstream Mastodon behavior by having the Content Warning toggle not affect media attachments",
"settings.content_warnings_shared_state": "Show/hide content of all copies at once",
"settings.content_warnings_shared_state_hint": "Reproduce upstream Mastodon behavior by having the Content Warning button affect all copies of a post at once. This will prevent automatic collapsing of any copy of a toot with unfolded CW",
"settings.content_warnings_unfold_opts": "Auto-unfolding options",
diff --git a/app/javascript/flavours/glitch/reducers/local_settings.js b/app/javascript/flavours/glitch/reducers/local_settings.js
index 130047b65fc847..ef3fdb38bf6780 100644
--- a/app/javascript/flavours/glitch/reducers/local_settings.js
+++ b/app/javascript/flavours/glitch/reducers/local_settings.js
@@ -23,7 +23,6 @@ const initialState = ImmutableMap({
rewrite_mentions: 'no',
content_warnings : ImmutableMap({
filter : null,
- media_outside: false,
shared_state : false,
}),
media : ImmutableMap({
diff --git a/app/javascript/flavours/glitch/styles/components.scss b/app/javascript/flavours/glitch/styles/components.scss
index 3249e5e47184e2..2d65c2f9e964ae 100644
--- a/app/javascript/flavours/glitch/styles/components.scss
+++ b/app/javascript/flavours/glitch/styles/components.scss
@@ -1133,11 +1133,6 @@ body > [data-popper-placement] {
}
}
-.status__content {
- // glitch: necessary for fullwidth media options
- overflow: visible;
-}
-
.reply-indicator {
display: grid;
grid-template-columns: 46px minmax(0, 1fr);
@@ -1351,7 +1346,6 @@ body > [data-popper-placement] {
.status__content.status__content--collapsed .status__content__text {
max-height: 20px * 15; // 15 lines is roughly above 500 characters
- overflow: hidden;
}
.status__content__read-more-button,
@@ -1499,11 +1493,25 @@ body > [data-popper-placement] {
border-bottom: 0;
.status__content,
- .status__action-bar {
+ .status__action-bar,
+ .media-gallery,
+ .video-player,
+ .audio-player,
+ .attachment-list,
+ .picture-in-picture-placeholder,
+ .more-from-author,
+ .status-card,
+ .hashtag-bar,
+ .content-warning,
+ .filter-warning {
margin-inline-start: $thread-margin;
width: calc(100% - $thread-margin);
}
+ .more-from-author {
+ width: calc(100% - $thread-margin + 2px);
+ }
+
.status__content__read-more-button {
margin-inline-start: $thread-margin;
}
@@ -1659,14 +1667,6 @@ body > [data-popper-placement] {
.media-gallery__item-thumbnail {
cursor: default;
}
-
- .content-warning {
- margin-bottom: 16px;
-
- &:last-child {
- margin-bottom: 0;
- }
- }
}
.status__prepend {
@@ -10934,7 +10934,17 @@ noscript {
$icon-margin: 48px; // 40px avatar + 8px gap
.status__content,
- .status__action-bar {
+ .status__action-bar,
+ .media-gallery,
+ .video-player,
+ .audio-player,
+ .attachment-list,
+ .picture-in-picture-placeholder,
+ .more-from-author,
+ .status-card,
+ .hashtag-bar,
+ .content-warning,
+ .filter-warning {
margin-inline-start: $icon-margin;
width: calc(100% - $icon-margin);
}