),
- ({ onChange, settings }) => (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ),
({ intl, onChange, settings }) => (
diff --git a/app/javascript/flavours/glitch/features/status/components/detailed_status.tsx b/app/javascript/flavours/glitch/features/status/components/detailed_status.tsx
index c6f0900c5f..8267686b04 100644
--- a/app/javascript/flavours/glitch/features/status/components/detailed_status.tsx
+++ b/app/javascript/flavours/glitch/features/status/components/detailed_status.tsx
@@ -19,7 +19,6 @@ import { getHashtagBarForStatus } from 'flavours/glitch/components/hashtag_bar';
import { IconLogo } from 'flavours/glitch/components/logo';
import { Permalink } from 'flavours/glitch/components/permalink';
import PictureInPicturePlaceholder from 'flavours/glitch/components/picture_in_picture_placeholder';
-import { useAppHistory } from 'flavours/glitch/components/router';
import { VisibilityIcon } from 'flavours/glitch/components/visibility_icon';
import PollContainer from 'flavours/glitch/containers/poll_container';
import { useAppSelector } from 'flavours/glitch/store';
@@ -75,7 +74,6 @@ export const DetailedStatus: React.FC<{
const properStatus = status?.get('reblog') ?? status;
const [height, setHeight] = useState(0);
const nodeRef = useRef();
- const history = useAppHistory();
const rewriteMentions = useAppSelector(
(state) => state.local_settings.get('rewrite_mentions', false) as boolean,
@@ -142,18 +140,6 @@ export const DetailedStatus: React.FC<{
if (onTranslate) onTranslate(status);
}, [onTranslate, status]);
- const parseClick = useCallback(
- (e: React.MouseEvent, destination: string) => {
- if (e.button === 0 && !(e.ctrlKey || e.altKey || e.metaKey)) {
- e.preventDefault();
- history.push(destination);
- }
-
- e.stopPropagation();
- },
- [history],
- );
-
if (!properStatus) {
return null;
}
@@ -405,8 +391,6 @@ export const DetailedStatus: React.FC<{
onUpdate={handleChildUpdate}
tagLinks={tagMisleadingLinks}
rewriteMentions={rewriteMentions}
- parseClick={parseClick}
- disabled
{...(statusContentProps as any)}
/>
diff --git a/app/javascript/flavours/glitch/features/ui/index.jsx b/app/javascript/flavours/glitch/features/ui/index.jsx
index 01edfda00d..9e803bcc96 100644
--- a/app/javascript/flavours/glitch/features/ui/index.jsx
+++ b/app/javascript/flavours/glitch/features/ui/index.jsx
@@ -132,7 +132,6 @@ const keyMap = {
goToRequests: 'g r',
toggleHidden: 'x',
bookmark: 'd',
- toggleCollapse: 'shift+x',
toggleSensitive: 'h',
openMedia: 'e',
};
diff --git a/app/javascript/flavours/glitch/locales/en.json b/app/javascript/flavours/glitch/locales/en.json
index 7a982d9532..3d2a082f5d 100644
--- a/app/javascript/flavours/glitch/locales/en.json
+++ b/app/javascript/flavours/glitch/locales/en.json
@@ -47,7 +47,6 @@
"home.settings": "Column settings",
"keyboard_shortcuts.bookmark": "to bookmark",
"keyboard_shortcuts.secondary_toot": "to send toot using secondary privacy setting",
- "keyboard_shortcuts.toggle_collapse": "to collapse/uncollapse toots",
"moved_to_warning": "This account is marked as moved to {moved_to_link}, and may thus not accept new follows.",
"navigation_bar.app_settings": "App settings",
"navigation_bar.keyboard_shortcuts": "Keyboard shortcuts",
@@ -61,16 +60,7 @@
"notifications.marked_clear": "Clear selected notifications",
"notifications.marked_clear_confirmation": "Are you sure you want to permanently clear all selected notifications?",
"settings.always_show_spoilers_field": "Always enable the Content Warning field",
- "settings.auto_collapse": "Automatic collapsing",
- "settings.auto_collapse_all": "Everything",
- "settings.auto_collapse_height": "Height (in pixels) for a toot to be considered lengthy",
- "settings.auto_collapse_lengthy": "Lengthy toots",
- "settings.auto_collapse_media": "Toots with media",
- "settings.auto_collapse_notifications": "Notifications",
- "settings.auto_collapse_reblogs": "Boosts",
- "settings.auto_collapse_replies": "Replies",
"settings.close": "Close",
- "settings.collapsed_statuses": "Collapsed toots",
"settings.compose_box_opts": "Compose box",
"settings.confirm_before_clearing_draft": "Show confirmation dialog before overwriting the message being composed",
"settings.confirm_boost_missing_media_description": "Show confirmation dialog before boosting toots lacking media descriptions",
@@ -84,8 +74,6 @@
"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",
"settings.deprecated_setting": "This setting is now controlled from Mastodon's {settings_page_link}",
- "settings.enable_collapsed": "Enable collapsed toots",
- "settings.enable_collapsed_hint": "Collapsed posts have parts of their contents hidden to take up less screen space. This is distinct from the Content Warning feature",
"settings.enable_content_warnings_auto_unfold": "Automatically unfold content-warnings",
"settings.general": "General",
"settings.hicolor_privacy_icons": "High color privacy icons",
@@ -115,7 +103,6 @@
"settings.rewrite_mentions_no": "Do not rewrite mentions",
"settings.rewrite_mentions_username": "Rewrite with username",
"settings.shared_settings_link": "user preferences",
- "settings.show_action_bar": "Show action buttons in collapsed toots",
"settings.show_content_type_choice": "Show content-type choice when authoring toots",
"settings.show_published_toast": "Display toast when publishing/saving a post",
"settings.show_reply_counter": "Display an estimate of the reply count",
@@ -136,7 +123,6 @@
"settings.tag_misleading_links.hint": "Add a visual indication with the link target host to every link not mentioning it explicitly",
"settings.wide_view": "Wide view (Desktop mode only)",
"settings.wide_view_hint": "Stretches columns to better fill the available space.",
- "status.collapse": "Collapse",
"status.filtered": "Filtered",
"status.has_audio": "Features attached audio files",
"status.has_pictures": "Features attached pictures",
@@ -146,6 +132,5 @@
"status.in_reply_to": "This toot is a reply",
"status.is_poll": "This toot is a poll",
"status.local_only": "Only visible from your instance",
- "status.show_filter_reason": "Show anyway",
- "status.uncollapse": "Uncollapse"
+ "status.show_filter_reason": "Show anyway"
}
diff --git a/app/javascript/flavours/glitch/reducers/local_settings.js b/app/javascript/flavours/glitch/reducers/local_settings.js
index b5df6be05b..130047b65f 100644
--- a/app/javascript/flavours/glitch/reducers/local_settings.js
+++ b/app/javascript/flavours/glitch/reducers/local_settings.js
@@ -26,19 +26,6 @@ const initialState = ImmutableMap({
media_outside: false,
shared_state : false,
}),
- collapsed : ImmutableMap({
- enabled : true,
- auto : ImmutableMap({
- all : false,
- notifications : true,
- lengthy : true,
- reblogs : false,
- replies : false,
- media : false,
- height : 400,
- }),
- show_action_bar : true,
- }),
media : ImmutableMap({
letterbox : true,
fullwidth : true,
diff --git a/app/javascript/flavours/glitch/styles/components.scss b/app/javascript/flavours/glitch/styles/components.scss
index c61a7471a8..76af86370a 100644
--- a/app/javascript/flavours/glitch/styles/components.scss
+++ b/app/javascript/flavours/glitch/styles/components.scss
@@ -1349,6 +1349,11 @@ 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,
.status__content__translate-button {
display: flex;
@@ -1553,46 +1558,6 @@ body > [data-popper-placement] {
}
}
-.status__wrapper.collapsed {
- .status {
- background-position: center;
- background-size: cover;
- user-select: none;
- min-height: 0;
- }
-
- .display-name:hover .display-name__html {
- text-decoration: none;
- }
-
- .status__content {
- height: 20px;
- overflow: hidden;
- text-overflow: ellipsis;
- padding-top: 0;
- mask-image: linear-gradient(rgb(0 0 0 / 100%), transparent);
-
- a:hover {
- text-decoration: none;
- }
- }
-
- .notification__message {
- margin-bottom: 0;
- white-space: nowrap;
- }
-}
-
-.notification__message-collapse-button {
- text-align: end;
- flex-grow: 2;
-
- .status__collapse-button .icon {
- width: 24px;
- height: 24px;
- }
-}
-
.status__relative-time {
display: block;
font-size: 14px;
@@ -1661,73 +1626,6 @@ body > [data-popper-placement] {
}
}
-.status__collapse-button {
- // compensate for large padding built into the icon
- margin: -4px;
-}
-
-.status__collapse-button.active > .icon {
- transform: rotate(-180deg);
-}
-
-.no-reduce-motion .status__collapse-button {
- &.activate {
- & > .icon {
- animation: spring-flip-in 1s linear;
- }
- }
-
- &.deactivate {
- & > .icon {
- animation: spring-flip-out 1s linear;
- }
- }
-}
-
-@keyframes spring-flip-in {
- 0% {
- transform: rotate(0deg);
- }
-
- 30% {
- transform: rotate(-242.4deg);
- }
-
- 60% {
- transform: rotate(-158.35deg);
- }
-
- 90% {
- transform: rotate(-187.5deg);
- }
-
- 100% {
- transform: rotate(-180deg);
- }
-}
-
-@keyframes spring-flip-out {
- 0% {
- transform: rotate(-180deg);
- }
-
- 30% {
- transform: rotate(62.4deg);
- }
-
- 60% {
- transform: rotate(-21.635deg);
- }
-
- 90% {
- transform: rotate(7.5deg);
- }
-
- 100% {
- transform: rotate(0deg);
- }
-}
-
.status-check-box__status {
display: block;
box-sizing: border-box;
diff --git a/app/javascript/flavours/glitch/styles/glitch_local_settings.scss b/app/javascript/flavours/glitch/styles/glitch_local_settings.scss
index b32d54c681..f416de1f3d 100644
--- a/app/javascript/flavours/glitch/styles/glitch_local_settings.scss
+++ b/app/javascript/flavours/glitch/styles/glitch_local_settings.scss
@@ -121,10 +121,6 @@
text-decoration: none;
}
}
-
- #mastodon-settings--collapsed-auto-height {
- width: calc(4ch + 20px);
- }
}
.glitch.local-settings__page__item.string,