mirror of
				https://github.com/open-webui/open-webui
				synced 2025-06-26 18:26:48 +00:00 
			
		
		
		
	refac
This commit is contained in:
		
							parent
							
								
									7969d8e8f3
								
							
						
					
					
						commit
						9cbe39718d
					
				@ -45,10 +45,15 @@
 | 
			
		||||
		align="end"
 | 
			
		||||
		transition={flyAndScale}
 | 
			
		||||
	>
 | 
			
		||||
		<DropdownMenu.Item
 | 
			
		||||
		<button
 | 
			
		||||
			type="button"
 | 
			
		||||
			class="flex rounded-md py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition items-center gap-2"
 | 
			
		||||
			on:click={(e) => {
 | 
			
		||||
				e.stopPropagation();
 | 
			
		||||
				e.preventDefault();
 | 
			
		||||
 | 
			
		||||
				toggleSidebarHandler();
 | 
			
		||||
				show = false;
 | 
			
		||||
			}}
 | 
			
		||||
		>
 | 
			
		||||
			{#if ($pinnedModels ?? []).includes(model?.id)}
 | 
			
		||||
@ -64,17 +69,22 @@
 | 
			
		||||
					{$i18n.t('Keep in Sidebar')}
 | 
			
		||||
				{/if}
 | 
			
		||||
			</div>
 | 
			
		||||
		</DropdownMenu.Item>
 | 
			
		||||
		</button>
 | 
			
		||||
 | 
			
		||||
		<DropdownMenu.Item
 | 
			
		||||
		<button
 | 
			
		||||
			type="button"
 | 
			
		||||
			class="flex rounded-md py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition items-center gap-2"
 | 
			
		||||
			on:click={() => {
 | 
			
		||||
			on:click={(e) => {
 | 
			
		||||
				e.stopPropagation();
 | 
			
		||||
				e.preventDefault();
 | 
			
		||||
 | 
			
		||||
				copyLinkHandler();
 | 
			
		||||
				show = false;
 | 
			
		||||
			}}
 | 
			
		||||
		>
 | 
			
		||||
			<Link />
 | 
			
		||||
 | 
			
		||||
			<div class="flex items-center">{$i18n.t('Copy Link')}</div>
 | 
			
		||||
		</DropdownMenu.Item>
 | 
			
		||||
		</button>
 | 
			
		||||
	</DropdownMenu.Content>
 | 
			
		||||
</DropdownMenu.Root>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user