mirror of
				https://github.com/notion-enhancer/notion-enhancer.git
				synced 2025-11-04 08:08:08 +11:00 
			
		
		
		
	fix(panel): dont move help button unless panel is pinned
This commit is contained in:
		
							parent
							
								
									653d7d9bc8
								
							
						
					
					
						commit
						26c9638013
					
				@ -295,7 +295,7 @@ function Panel({
 | 
				
			|||||||
      if (!$notionHelp) return;
 | 
					      if (!$notionHelp) return;
 | 
				
			||||||
      width ??= await getWidth();
 | 
					      width ??= await getWidth();
 | 
				
			||||||
      if (isNaN(width)) width = minWidth;
 | 
					      if (isNaN(width)) width = minWidth;
 | 
				
			||||||
      if (isClosed()) width = 0;
 | 
					      if (!isPinned()) width = 0;
 | 
				
			||||||
      const to = `${26 + width}px`,
 | 
					      const to = `${26 + width}px`,
 | 
				
			||||||
        from = $notionHelp.style.getPropertyValue("right");
 | 
					        from = $notionHelp.style.getPropertyValue("right");
 | 
				
			||||||
      if (from === to) return;
 | 
					      if (from === to) return;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user