mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 04:08:32 +03:00
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 = {
|
||||
account: 'authors',
|
||||
};
|
||||
let toast = showToast(
|
||||
`Showing ${filterCategoryText[selectedFilterCategory] || 'all posts'}${
|
||||
authorUsername ? ` by @${authorUsername}` : ''
|
||||
}, ${sortByText[sortBy][sortOrderIndex]} first${
|
||||
let toast = showToast({
|
||||
duration: 5_000, // 5 seconds
|
||||
text: `Showing ${
|
||||
filterCategoryText[selectedFilterCategory] || 'all posts'
|
||||
}${authorUsername ? ` by @${authorUsername}` : ''}, ${
|
||||
sortByText[sortBy][sortOrderIndex]
|
||||
} first${
|
||||
!!groupBy
|
||||
? `, grouped by ${groupBy === 'account' ? groupByText[groupBy] : ''}`
|
||||
: ''
|
||||
}`,
|
||||
);
|
||||
});
|
||||
return () => {
|
||||
toast?.hideToast?.();
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue