diff --git a/src/index.css b/src/index.css index 0af210bc3..6d8b30b8c 100644 --- a/src/index.css +++ b/src/index.css @@ -39,6 +39,25 @@ html, body, #root { font-family: 'Montserrat'; } +/* ========================= + macOS Electron Draggable Region Fix + ========================= */ + +/* Fix: Interactive elements in draggable regions lose focus on macOS. + * Sets no-drag to exclude inputs, buttons, etc. from parent drag regions. + * See: https://github.com/ipfs/ipfs-desktop/issues/2943 + */ +input:not([type="hidden"]), +textarea, +select, +button, +[role="button"], +[contenteditable="true"] { + -webkit-app-region: no-drag !important; + app-region: no-drag !important; + pointer-events: auto; +} + /* ========================= Custom tachyons classes ========================= */