PictureInPicture: Fix picture in picture button (#3120)
This commit is contained in:
		
							parent
							
								
									3af06edb95
								
							
						
					
					
						commit
						16a1c44947
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -30,13 +30,13 @@ export default definePlugin({ | ||||||
|         { |         { | ||||||
|             find: ".removeMosaicItemHoverButton),", |             find: ".removeMosaicItemHoverButton),", | ||||||
|             replacement: { |             replacement: { | ||||||
|                 match: /\.nonMediaMosaicItem\]:.{0,40}children:\[(?<=showDownload:(\i).+?isVisualMediaType:(\i).+?)/, |                 match: /(\.nonMediaMosaicItem\]:.{0,40}children:)(\i.slice\(\i\))(?<=showDownload:(\i).+?isVisualMediaType:(\i).+?)/, | ||||||
|                 replace: "$&$1&&$2&&$self.renderPiPButton()," |                 replace: (_, rest, origChildren, showDownload, isVisualMediaType) => `${rest}[${showDownload}&&${isVisualMediaType}&&$self.PictureInPictureButton(),...${origChildren}]` | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|     ], |     ], | ||||||
| 
 | 
 | ||||||
|     renderPiPButton: ErrorBoundary.wrap(() => { |     PictureInPictureButton: ErrorBoundary.wrap(() => { | ||||||
|         return ( |         return ( | ||||||
|             <Tooltip text="Toggle Picture in Picture"> |             <Tooltip text="Toggle Picture in Picture"> | ||||||
|                 {tooltipProps => ( |                 {tooltipProps => ( | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue