diff --git a/client/homebrew/brewRenderer/notificationPopup/notificationPopup.less b/client/homebrew/brewRenderer/notificationPopup/notificationPopup.less index 6e3bf13f6..a63ad5fac 100644 --- a/client/homebrew/brewRenderer/notificationPopup/notificationPopup.less +++ b/client/homebrew/brewRenderer/notificationPopup/notificationPopup.less @@ -1,5 +1,5 @@ -@import './client/homebrew/navbar/navbar.less'; - +@import '@sharedStyles/core.less'; +@navbarHeight: 29px; @viewerToolsHeight : 32px; .popups { diff --git a/client/homebrew/navbar/navbar.jsx b/client/homebrew/navbar/navbar.jsx index 1acd04cae..fb0caa5ec 100644 --- a/client/homebrew/navbar/navbar.jsx +++ b/client/homebrew/navbar/navbar.jsx @@ -37,11 +37,16 @@ const Navbar = ({ children, brew, pageName, editor, title, currentPage, props }) } return ( - File} icon={null} key={'file'}> - - - - + File} icon={null} key={'file'}> +
  • + + + + + + +
  • +
  • @@ -61,7 +66,7 @@ const Navbar = ({ children, brew, pageName, editor, title, currentPage, props }) const renderEdit = ()=>{ return ( - Edit} icon={null} key={'edit'}> + Edit} icon={null} key={'edit'}>
  • editor?.undo()} kbd={`${mod} + z`} disabled={!editor}> Undo @@ -85,7 +90,7 @@ const Navbar = ({ children, brew, pageName, editor, title, currentPage, props }) }; const renderHelp = ()=>{ - return Help} icon={null} key={'help'}> + return Help} icon={null} key={'help'}>
  • Our Discord Server Our Subreddit @@ -112,14 +117,14 @@ const Navbar = ({ children, brew, pageName, editor, title, currentPage, props }) return (
  • ); }; diff --git a/client/homebrew/pages/basePages/editorPage/editorPage.jsx b/client/homebrew/pages/basePages/editorPage/editorPage.jsx index cb9ae19c6..b3d8dbc39 100644 --- a/client/homebrew/pages/basePages/editorPage/editorPage.jsx +++ b/client/homebrew/pages/basePages/editorPage/editorPage.jsx @@ -28,6 +28,8 @@ const SAVEKEY_PREFIX = 'HB_editor_defaultSave_'; const SAVE_TIMEOUT = 10000; //Autosave 10 seconds after last change const UNSAVED_WARNING_TIMEOUT = 900000; //Warn user afer 15 minutes of unsaved changes const UNSAVED_WARNING_POPUP_TIMEOUT = 4000; //Show the warning for 4 seconds +const isMac = navigator.platform.toUpperCase().includes('MAC'); +const mod = isMac ? '⌘' : 'Ctrl'; const EditorPage = (props)=>{ const { @@ -377,9 +379,8 @@ const EditorPage = (props)=>{ trySave(true, true, saveGoogle)} - icon='fas fa-save'> + icon='fas fa-save' kbd={`${mod} + S`}> save now {(pageName == 'editPage') && renderAutoSaveButton()}