mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	feat(mobile): display help modal (closes #666)
This commit is contained in:
		
							parent
							
								
									d3096940f6
								
							
						
					
					
						commit
						20b439b2cb
					
				| @ -26,6 +26,7 @@ import PromotedAttributesWidget from "../widgets/ribbon_widgets/promoted_attribu | |||||||
| import ClassicEditorToolbar from "../widgets/ribbon_widgets/classic_editor_toolbar.js"; | import ClassicEditorToolbar from "../widgets/ribbon_widgets/classic_editor_toolbar.js"; | ||||||
| import SidebarContainer from "../widgets/mobile_widgets/sidebar_container.js"; | import SidebarContainer from "../widgets/mobile_widgets/sidebar_container.js"; | ||||||
| import AboutDialog from "../widgets/dialogs/about.js"; | import AboutDialog from "../widgets/dialogs/about.js"; | ||||||
|  | import HelpDialog from "../widgets/dialogs/help.js"; | ||||||
| 
 | 
 | ||||||
| const MOBILE_CSS = ` | const MOBILE_CSS = ` | ||||||
| <style> | <style> | ||||||
| @ -188,5 +189,6 @@ export default class MobileLayout { | |||||||
|                 .child(new GlobalMenuWidget(true)) |                 .child(new GlobalMenuWidget(true)) | ||||||
|                 .id("launcher-pane")) |                 .id("launcher-pane")) | ||||||
|             .child(new AboutDialog()) |             .child(new AboutDialog()) | ||||||
|  |             .child(new HelpDialog()) | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
| @ -89,11 +89,6 @@ const TPL = ` | |||||||
|         margin-right: 5px; |         margin-right: 5px; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     body.mobile .show-help-button { |  | ||||||
|         /* hidden because these dialogs are not available for mobile */ |  | ||||||
|         display: none; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     body.mobile .global-menu .dropdown-submenu .dropdown-menu { |     body.mobile .global-menu .dropdown-submenu .dropdown-menu { | ||||||
|         display: block; |         display: block; | ||||||
|         font-size: 90%; |         font-size: 90%; | ||||||
|  | |||||||
| @ -1229,6 +1229,7 @@ body.mobile #launcher-pane .dropdown-menu.show { | |||||||
|         left: 0; |         left: 0; | ||||||
|         right: 0; |         right: 0; | ||||||
|         margin: 0 !important; |         margin: 0 !important; | ||||||
|  |         max-height: 85vh; | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran