Make toast stay longer, due to longer text
This commit is contained in:
parent
b479fa1f35
commit
94dcd1606a
1 changed files with 8 additions and 5 deletions
|
@ -493,15 +493,18 @@ function Catchup() {
|
||||||
const groupByText = {
|
const groupByText = {
|
||||||
account: 'authors',
|
account: 'authors',
|
||||||
};
|
};
|
||||||
let toast = showToast(
|
let toast = showToast({
|
||||||
`Showing ${filterCategoryText[selectedFilterCategory] || 'all posts'}${
|
duration: 5_000, // 5 seconds
|
||||||
authorUsername ? ` by @${authorUsername}` : ''
|
text: `Showing ${
|
||||||
}, ${sortByText[sortBy][sortOrderIndex]} first${
|
filterCategoryText[selectedFilterCategory] || 'all posts'
|
||||||
|
}${authorUsername ? ` by @${authorUsername}` : ''}, ${
|
||||||
|
sortByText[sortBy][sortOrderIndex]
|
||||||
|
} first${
|
||||||
!!groupBy
|
!!groupBy
|
||||||
? `, grouped by ${groupBy === 'account' ? groupByText[groupBy] : ''}`
|
? `, grouped by ${groupBy === 'account' ? groupByText[groupBy] : ''}`
|
||||||
: ''
|
: ''
|
||||||
}`,
|
}`,
|
||||||
);
|
});
|
||||||
return () => {
|
return () => {
|
||||||
toast?.hideToast?.();
|
toast?.hideToast?.();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue