chore: hide customize toolbar action in mobile
This commit is contained in:
parent
950b5af8ec
commit
ae1cb5ee5d
|
|
@ -46,15 +46,13 @@ const CustomizeToolbar = () => {
|
|||
// Moving between containers
|
||||
const sourceList = isActiveInMain ? "main" : "more"
|
||||
const targetList = isActiveInMain ? "more" : "main"
|
||||
const item = actionOrder[sourceList].find((item) => item === activeId)
|
||||
if (!item) return
|
||||
const newIndexOfOver = actionOrder[targetList].indexOf(overId)
|
||||
setUISetting("toolbarOrder", {
|
||||
...actionOrder,
|
||||
[sourceList]: actionOrder[sourceList].filter((item) => item !== activeId),
|
||||
[targetList]: [
|
||||
...actionOrder[targetList].slice(0, newIndexOfOver),
|
||||
item,
|
||||
activeId,
|
||||
...actionOrder[targetList].slice(newIndexOfOver),
|
||||
],
|
||||
})
|
||||
|
|
|
|||
|
|
@ -28,7 +28,12 @@ function EntryHeaderImpl({ view, entryId, className }: EntryHeaderProps) {
|
|||
const actionConfigs = useEntryActions({ entryId, view }).filter(
|
||||
(item) =>
|
||||
!(
|
||||
[COMMAND_ID.entry.read, COMMAND_ID.entry.unread, COMMAND_ID.entry.copyLink] as string[]
|
||||
[
|
||||
COMMAND_ID.entry.read,
|
||||
COMMAND_ID.entry.unread,
|
||||
COMMAND_ID.entry.copyLink,
|
||||
COMMAND_ID.settings.customizeToolbar,
|
||||
] as string[]
|
||||
).includes(item.id),
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue