TimelinePanel: now can close expaneded toot

This commit is contained in:
thislight 2024-08-17 15:44:25 +08:00
parent 29073d4303
commit cf8a7b15b6
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E

View file

@ -146,7 +146,7 @@ const TimelinePanel: Component<{
expanded={item.id === expandedThreadId() ? 1 : 0}
onExpandChange={(x) => {
if (item.id !== expandedThreadId()) {
setExpandedThreadId(item.id);
setExpandedThreadId((x) => (x ? undefined : item.id));
} else if (x === 2) {
props.openFullScreenToot(item, element);
}
@ -205,8 +205,8 @@ const Home: ParentComponent = (props) => {
}
};
const client = () => {
const all = profiles()
return all?.[0]?.client
const all = profiles();
return all?.[0]?.client;
};
const navigate = useNavigate();