mirror of
				https://github.com/excalidraw/excalidraw.git
				synced 2025-11-04 12:54:23 +01:00 
			
		
		
		
	update position for mobile
This commit is contained in:
		@@ -152,15 +152,13 @@ function Picker<T>({
 | 
			
		||||
    );
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  const isMobile = device.editor.isMobile;
 | 
			
		||||
 | 
			
		||||
  return (
 | 
			
		||||
    <Popover.Content
 | 
			
		||||
      side={
 | 
			
		||||
        device.editor.isMobile && !device.viewport.isLandscape
 | 
			
		||||
          ? "top"
 | 
			
		||||
          : "bottom"
 | 
			
		||||
      }
 | 
			
		||||
      side={isMobile ? "right" : "bottom"}
 | 
			
		||||
      align="start"
 | 
			
		||||
      sideOffset={12}
 | 
			
		||||
      sideOffset={isMobile ? 8 : 12}
 | 
			
		||||
      style={{ zIndex: "var(--zIndex-popup)" }}
 | 
			
		||||
      onKeyDown={handleKeyDown}
 | 
			
		||||
    >
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user