mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
hide minimap on mobile by default (#6579)
If below large breakpoint, hide the minimap by default. If the user has set the setting before (or closed minimap), their preference will override this. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6579-hide-minimap-on-mobile-by-default-2a16d73d365081db9c66d209ee046097) by [Unito](https://www.unito.io) --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 34 KiB |
@@ -6,6 +6,7 @@ import type { ColorPalettes } from '@/schemas/colorPaletteSchema'
|
||||
import type { Keybinding } from '@/schemas/keyBindingSchema'
|
||||
import { NodeBadgeMode } from '@/types/nodeSource'
|
||||
import { LinkReleaseTriggerAction } from '@/types/searchBoxTypes'
|
||||
import { breakpointsTailwind } from '@vueuse/core'
|
||||
|
||||
/**
|
||||
* Core settings are essential configuration parameters required for ComfyUI's basic functionality.
|
||||
@@ -951,7 +952,7 @@ export const CORE_SETTINGS: SettingParams[] = [
|
||||
id: 'Comfy.Minimap.Visible',
|
||||
name: 'Display minimap on canvas',
|
||||
type: 'hidden',
|
||||
defaultValue: true,
|
||||
defaultValue: window.innerWidth >= breakpointsTailwind.lg,
|
||||
versionAdded: '1.25.0'
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user