feat: use floating-ui for better popover positioning
This commit is contained in:
		
							parent
							
								
									c1b8fe1221
								
							
						
					
					
						commit
						ffe22689eb
					
				
					 3 changed files with 16 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -44,6 +44,9 @@
 | 
			
		|||
  <script src="{{$darkMode.Permalink}}"></script>
 | 
			
		||||
  {{partial "katex.html" .}}
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
  <script src="https://unpkg.com/@floating-ui/core@0.7.3"></script>
 | 
			
		||||
  <script src="https://unpkg.com/@floating-ui/dom@0.5.4"></script>
 | 
			
		||||
  {{ $popover := resources.Get "js/popover.js" | resources.Fingerprint "md5" |
 | 
			
		||||
  resources.Minify }}
 | 
			
		||||
  <script src="{{$popover.Permalink}}"></script>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue