Merge commit 'b51518f74173bb6fd9ce1c1ad73a8e67a66a7753' into glitch-soc/merge-4.6
This commit is contained in:
commit
c8376d9345
19 files changed
+78
-21
No files matched your search
@@ -17,7 +17,11 @@ import MenuIcon from '@/material-icons/400-24px/menu.svg?react';
|
||||
import NotificationsIcon from '@/material-icons/400-24px/notifications-fill.svg?react';
|
||||
import PublicIcon from '@/material-icons/400-24px/public.svg?react';
|
||||
import SettingsIcon from '@/material-icons/400-24px/settings.svg?react';
|
||||
import { mountCompose, unmountCompose } from 'mastodon/actions/compose';
|
||||
import {
|
||||
changeComposing,
|
||||
mountCompose,
|
||||
unmountCompose,
|
||||
} from 'mastodon/actions/compose';
|
||||
import { openModal } from 'mastodon/actions/modal';
|
||||
import { Column } from 'mastodon/components/column';
|
||||
import { ColumnHeader } from 'mastodon/components/column_header';
|
||||
@@ -66,6 +70,10 @@ const Compose: React.FC<{ multiColumn: boolean }> = ({ multiColumn }) => {
|
||||
};
|
||||
}, [dispatch]);
|
||||
|
||||
const handleFocus = useCallback(() => {
|
||||
dispatch(changeComposing(true));
|
||||
}, [dispatch]);
|
||||
|
||||
const handleLogoutClick = useCallback(
|
||||
(e: React.MouseEvent) => {
|
||||
e.preventDefault();
|
||||
@@ -167,7 +175,7 @@ const Compose: React.FC<{ multiColumn: boolean }> = ({ multiColumn }) => {
|
||||
role='region'
|
||||
aria-label={intl.formatMessage(navbarMessages.publish)}
|
||||
>
|
||||
<div className='drawer__inner'>
|
||||
<div className='drawer__inner' onFocus={handleFocus}>
|
||||
<ComposeFormContainer />
|
||||
|
||||
<div className='drawer__inner__mastodon with-zig-zag-decoration'>
|
||||
|
||||
@@ -42,12 +42,13 @@
|
||||
}
|
||||
|
||||
p {
|
||||
overflow: hidden;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
line-clamp: 2;
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,9 @@ const addReply = (
|
||||
|
||||
if (!state.inReplyTos[id]) {
|
||||
const siblings = (state.replies[in_reply_to_id] ??= []);
|
||||
const index = siblings.findIndex((sibling) => compareId(sibling, id) < 0);
|
||||
const index = siblings.findLastIndex(
|
||||
(sibling) => compareId(sibling, id) < 0,
|
||||
);
|
||||
siblings.splice(index + 1, 0, id);
|
||||
state.inReplyTos[id] = in_reply_to_id;
|
||||
}
|
||||
|
||||
@@ -11031,10 +11031,14 @@ noscript {
|
||||
}
|
||||
|
||||
.column-footer {
|
||||
padding: 16px;
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
padding: 16px;
|
||||
background: var(--color-bg-primary);
|
||||
|
||||
@media (width <= $mobile-menu-breakpoint) {
|
||||
padding-bottom: calc(16px + var(--mobile-bottom-nav-height, 0));
|
||||
}
|
||||
}
|
||||
|
||||
.lists-scrollable {
|
||||
|
||||
Reference in new issue
Block a user