forked from MapComplete/MapComplete
		
	UX: add proper delete dialog, add option to report images
This commit is contained in:
		
							parent
							
								
									8690ad35bb
								
							
						
					
					
						commit
						5b618dc367
					
				
					 18 changed files with 334 additions and 176 deletions
				
			
		|  | @ -7,6 +7,13 @@ | |||
|    */ | ||||
| 
 | ||||
|   export let fullscreen: boolean = false | ||||
|   export let bodyPadding = "p-4 md:p-5 " | ||||
|   export let shown: UIEventSource<boolean> | ||||
|   export let dismissable = true | ||||
|   /** | ||||
|    * Default: 50 | ||||
|    */ | ||||
|   export let zIndex : string = "z-50" | ||||
| 
 | ||||
|   const shared = | ||||
|     "in-page normal-background dark:bg-gray-800 rounded-lg border-gray-200 dark:border-gray-700 border-gray-200 dark:border-gray-700 divide-gray-200 dark:divide-gray-700 shadow-md" | ||||
|  | @ -14,19 +21,16 @@ | |||
|   if (fullscreen) { | ||||
|     defaultClass = shared | ||||
|   } | ||||
|   let dialogClass = "fixed top-0 start-0 end-0 h-modal inset-0 z-50 w-full p-4 flex" | ||||
|   let dialogClass = "fixed top-0 start-0 end-0 h-modal inset-0 w-full p-4 flex "+zIndex | ||||
|   if (fullscreen) { | ||||
|     dialogClass += " h-full-child" | ||||
|   } | ||||
|   export let bodyPadding = "p-4 md:p-5 " | ||||
|   let bodyClass = bodyPadding + " h-full space-y-4 flex-1 overflow-y-auto overscroll-contain" | ||||
| 
 | ||||
|   let headerClass = "flex justify-between items-center p-2 px-4 md:px-5 rounded-t-lg" | ||||
|   if (!$$slots.header) { | ||||
|     headerClass = "hidden" | ||||
|   } | ||||
|   export let shown: UIEventSource<boolean> | ||||
|   export let dismissable = true | ||||
|   let _shown = false | ||||
|   shown.addCallbackAndRun((sh) => { | ||||
|     _shown = sh | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue