mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:17:11 -05:00 
			
		
		
		
	Create real anchors around admin sidebar buttons (#3925)
This commit is contained in:
		
							parent
							
								
									66cc744c22
								
							
						
					
					
						commit
						c0a48d7357
					
				@ -12,7 +12,6 @@
 | 
				
			|||||||
  import Cog from 'svelte-material-icons/Cog.svelte';
 | 
					  import Cog from 'svelte-material-icons/Cog.svelte';
 | 
				
			||||||
  import Server from 'svelte-material-icons/Server.svelte';
 | 
					  import Server from 'svelte-material-icons/Server.svelte';
 | 
				
			||||||
  import StatusBox from '$lib/components/shared-components/status-box.svelte';
 | 
					  import StatusBox from '$lib/components/shared-components/status-box.svelte';
 | 
				
			||||||
  import { goto } from '$app/navigation';
 | 
					 | 
				
			||||||
  import { AppRoute } from '../../lib/constants';
 | 
					  import { AppRoute } from '../../lib/constants';
 | 
				
			||||||
  import type { LayoutData } from './$types';
 | 
					  import type { LayoutData } from './$types';
 | 
				
			||||||
  import SideBarSection from '$lib/components/shared-components/side-bar/side-bar-section.svelte';
 | 
					  import SideBarSection from '$lib/components/shared-components/side-bar/side-bar-section.svelte';
 | 
				
			||||||
@ -40,30 +39,22 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
<UserPageLayout user={data.user} showUploadButton={false} title={getPageTitle(data.routeId)}>
 | 
					<UserPageLayout user={data.user} showUploadButton={false} title={getPageTitle(data.routeId)}>
 | 
				
			||||||
  <SideBarSection slot="sidebar">
 | 
					  <SideBarSection slot="sidebar">
 | 
				
			||||||
    <SideBarButton
 | 
					    <a data-sveltekit-preload-data="hover" href={AppRoute.ADMIN_USER_MANAGEMENT} draggable="false">
 | 
				
			||||||
      title="Users"
 | 
					      <SideBarButton
 | 
				
			||||||
      logo={AccountMultipleOutline}
 | 
					        title="Users"
 | 
				
			||||||
      isSelected={data.routeId === AppRoute.ADMIN_USER_MANAGEMENT}
 | 
					        logo={AccountMultipleOutline}
 | 
				
			||||||
      on:selected={() => goto(AppRoute.ADMIN_USER_MANAGEMENT)}
 | 
					        isSelected={data.routeId === AppRoute.ADMIN_USER_MANAGEMENT}
 | 
				
			||||||
    />
 | 
					      />
 | 
				
			||||||
    <SideBarButton
 | 
					    </a>
 | 
				
			||||||
      title="Jobs"
 | 
					    <a data-sveltekit-preload-data="hover" href={AppRoute.ADMIN_JOBS} draggable="false">
 | 
				
			||||||
      logo={Sync}
 | 
					      <SideBarButton title="Jobs" logo={Sync} isSelected={data.routeId === AppRoute.ADMIN_JOBS} />
 | 
				
			||||||
      isSelected={data.routeId === AppRoute.ADMIN_JOBS}
 | 
					    </a>
 | 
				
			||||||
      on:selected={() => goto(AppRoute.ADMIN_JOBS)}
 | 
					    <a data-sveltekit-preload-data="hover" href={AppRoute.ADMIN_SETTINGS} draggable="false">
 | 
				
			||||||
    />
 | 
					      <SideBarButton title="Settings" logo={Cog} isSelected={data.routeId === AppRoute.ADMIN_SETTINGS} />
 | 
				
			||||||
    <SideBarButton
 | 
					    </a>
 | 
				
			||||||
      title="Settings"
 | 
					    <a data-sveltekit-preload-data="hover" href={AppRoute.ADMIN_STATS} draggable="false">
 | 
				
			||||||
      logo={Cog}
 | 
					      <SideBarButton title="Server Stats" logo={Server} isSelected={data.routeId === AppRoute.ADMIN_STATS} />
 | 
				
			||||||
      isSelected={data.routeId === AppRoute.ADMIN_SETTINGS}
 | 
					    </a>
 | 
				
			||||||
      on:selected={() => goto(AppRoute.ADMIN_SETTINGS)}
 | 
					 | 
				
			||||||
    />
 | 
					 | 
				
			||||||
    <SideBarButton
 | 
					 | 
				
			||||||
      title="Server Stats"
 | 
					 | 
				
			||||||
      logo={Server}
 | 
					 | 
				
			||||||
      isSelected={data.routeId === AppRoute.ADMIN_STATS}
 | 
					 | 
				
			||||||
      on:selected={() => goto(AppRoute.ADMIN_STATS)}
 | 
					 | 
				
			||||||
    />
 | 
					 | 
				
			||||||
    <div class="mb-6 mt-auto">
 | 
					    <div class="mb-6 mt-auto">
 | 
				
			||||||
      <StatusBox />
 | 
					      <StatusBox />
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user