Timothy Jaeryang Baek 3 هفته پیش
والد
کامیت
f0bd74b75b

+ 2 - 2
src/lib/components/admin/Evaluations.svelte

@@ -56,7 +56,7 @@
 	<div class="flex flex-col lg:flex-row w-full h-full pb-2 lg:space-x-4">
 	<div class="flex flex-col lg:flex-row w-full h-full pb-2 lg:space-x-4">
 		<div
 		<div
 			id="users-tabs-container"
 			id="users-tabs-container"
-			class="tabs flex flex-row overflow-x-auto gap-2.5 max-w-full lg:gap-1 lg:flex-col lg:flex-none lg:w-40 dark:text-gray-200 text-sm font-medium text-left scrollbar-none"
+			class="tabs mx-[16px] lg:pl-[16px] lg:pr-0 flex flex-row overflow-x-auto gap-2.5 max-w-full lg:gap-1 lg:flex-col lg:flex-none lg:w-40 dark:text-gray-200 text-sm font-medium text-left scrollbar-none"
 		>
 		>
 			<button
 			<button
 				id="leaderboard"
 				id="leaderboard"
@@ -113,7 +113,7 @@
 			</button>
 			</button>
 		</div>
 		</div>
 
 
-		<div class="flex-1 mt-1 lg:mt-0 overflow-y-scroll">
+		<div class="flex-1 mt-1 lg:mt-0 px-[16px] lg:pr-[16px] lg:pl-0 overflow-y-scroll">
 			{#if selectedTab === 'leaderboard'}
 			{#if selectedTab === 'leaderboard'}
 				<Leaderboard {feedbacks} />
 				<Leaderboard {feedbacks} />
 			{:else if selectedTab === 'feedbacks'}
 			{:else if selectedTab === 'feedbacks'}

+ 2 - 2
src/lib/components/admin/Functions.svelte

@@ -222,7 +222,7 @@
 	}}
 	}}
 />
 />
 
 
-<div class="flex flex-col mt-1.5 mb-0.5">
+<div class="flex flex-col mt-1.5 mb-0.5 px-[16px]">
 	<div class="flex justify-between items-center mb-1">
 	<div class="flex justify-between items-center mb-1">
 		<div class="flex md:self-center text-xl items-center font-medium px-0.5">
 		<div class="flex md:self-center text-xl items-center font-medium px-0.5">
 			{$i18n.t('Functions')}
 			{$i18n.t('Functions')}
@@ -317,7 +317,7 @@
 	</div>
 	</div>
 </div>
 </div>
 
 
-<div class="mb-5">
+<div class="mb-5 px-[16px]">
 	{#each filteredItems as func (func.id)}
 	{#each filteredItems as func (func.id)}
 		<div
 		<div
 			class=" flex space-x-4 cursor-pointer w-full px-2 py-2 dark:hover:bg-white/5 hover:bg-black/5 rounded-xl"
 			class=" flex space-x-4 cursor-pointer w-full px-2 py-2 dark:hover:bg-white/5 hover:bg-black/5 rounded-xl"

+ 4 - 2
src/lib/components/admin/Settings.svelte

@@ -83,7 +83,7 @@
 <div class="flex flex-col lg:flex-row w-full h-full pb-2 lg:space-x-4">
 <div class="flex flex-col lg:flex-row w-full h-full pb-2 lg:space-x-4">
 	<div
 	<div
 		id="admin-settings-tabs-container"
 		id="admin-settings-tabs-container"
-		class="tabs flex flex-row overflow-x-auto gap-2.5 max-w-full lg:gap-1 lg:flex-col lg:flex-none lg:w-40 dark:text-gray-200 text-sm font-medium text-left scrollbar-none"
+		class="tabs mx-[16px] lg:pl-[16px] lg:pr-0 flex flex-row overflow-x-auto gap-2.5 max-w-full lg:gap-1 lg:flex-col lg:flex-none lg:w-40 dark:text-gray-200 text-sm font-medium text-left scrollbar-none"
 	>
 	>
 		<button
 		<button
 			id="general"
 			id="general"
@@ -433,7 +433,9 @@
 		</button>
 		</button>
 	</div>
 	</div>
 
 
-	<div class="flex-1 mt-3 lg:mt-0 overflow-y-scroll pr-1 scrollbar-hidden">
+	<div
+		class="flex-1 mt-3 lg:mt-0 px-[16px] lg:pr-[16px] lg:pl-0 overflow-y-scroll scrollbar-hidden"
+	>
 		{#if selectedTab === 'general'}
 		{#if selectedTab === 'general'}
 			<General
 			<General
 				saveHandler={async () => {
 				saveHandler={async () => {

+ 2 - 2
src/lib/components/admin/Users.svelte

@@ -58,7 +58,7 @@
 <div class="flex flex-col lg:flex-row w-full h-full pb-2 lg:space-x-4">
 <div class="flex flex-col lg:flex-row w-full h-full pb-2 lg:space-x-4">
 	<div
 	<div
 		id="users-tabs-container"
 		id="users-tabs-container"
-		class=" flex flex-row overflow-x-auto gap-2.5 max-w-full lg:gap-1 lg:flex-col lg:flex-none lg:w-40 dark:text-gray-200 text-sm font-medium text-left scrollbar-none"
+		class="mx-[16px] lg:pl-[16px] lg:pr-0 flex flex-row overflow-x-auto gap-2.5 max-w-full lg:gap-1 lg:flex-col lg:flex-none lg:w-40 dark:text-gray-200 text-sm font-medium text-left scrollbar-none"
 	>
 	>
 		<button
 		<button
 			id="overview"
 			id="overview"
@@ -111,7 +111,7 @@
 		</button>
 		</button>
 	</div>
 	</div>
 
 
-	<div class="flex-1 mt-1 lg:mt-0 overflow-y-scroll">
+	<div class="flex-1 mt-1 lg:mt-0 px-[16px] lg:pr-[16px] lg:pl-0 overflow-y-scroll">
 		{#if selectedTab === 'overview'}
 		{#if selectedTab === 'overview'}
 			<UserList />
 			<UserList />
 		{:else if selectedTab === 'groups'}
 		{:else if selectedTab === 'groups'}

+ 11 - 15
src/lib/components/admin/Users/UserList.svelte

@@ -154,7 +154,7 @@
 	</div>
 	</div>
 {:else}
 {:else}
 	<div
 	<div
-		class="pt-0.5 pb-2 gap-1 flex flex-col md:flex-row justify-between sticky top-0 z-10 bg-white dark:bg-gray-900"
+		class="pt-0.5 pb-1 gap-1 flex flex-col md:flex-row justify-between sticky top-0 z-10 bg-white dark:bg-gray-900"
 	>
 	>
 		<div class="flex md:self-center text-lg font-medium px-0.5">
 		<div class="flex md:self-center text-lg font-medium px-0.5">
 			<div class="flex-shrink-0">
 			<div class="flex-shrink-0">
@@ -219,19 +219,15 @@
 		</div>
 		</div>
 	</div>
 	</div>
 
 
-	<div
-		class="scrollbar-hidden relative whitespace-nowrap overflow-x-auto max-w-full rounded-sm pt-0.5"
-	>
+	<div class="scrollbar-hidden relative whitespace-nowrap overflow-x-auto max-w-full">
 		<table
 		<table
 			class="w-full text-sm text-left text-gray-500 dark:text-gray-400 table-auto max-w-full rounded-sm"
 			class="w-full text-sm text-left text-gray-500 dark:text-gray-400 table-auto max-w-full rounded-sm"
 		>
 		>
-			<thead
-				class="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-850 dark:text-gray-400 -translate-y-0.5"
-			>
-				<tr class="">
+			<thead class="text-xs text-gray-800 uppercase bg-transparent dark:text-gray-200">
+				<tr class=" border-b-2 border-gray-100 dark:border-gray-800">
 					<th
 					<th
 						scope="col"
 						scope="col"
-						class="px-3 py-1.5 cursor-pointer select-none"
+						class="px-2.5 py-2 cursor-pointer select-none"
 						on:click={() => setSortKey('role')}
 						on:click={() => setSortKey('role')}
 					>
 					>
 						<div class="flex gap-1.5 items-center">
 						<div class="flex gap-1.5 items-center">
@@ -254,7 +250,7 @@
 					</th>
 					</th>
 					<th
 					<th
 						scope="col"
 						scope="col"
-						class="px-3 py-1.5 cursor-pointer select-none"
+						class="px-2.5 py-2 cursor-pointer select-none"
 						on:click={() => setSortKey('name')}
 						on:click={() => setSortKey('name')}
 					>
 					>
 						<div class="flex gap-1.5 items-center">
 						<div class="flex gap-1.5 items-center">
@@ -277,7 +273,7 @@
 					</th>
 					</th>
 					<th
 					<th
 						scope="col"
 						scope="col"
-						class="px-3 py-1.5 cursor-pointer select-none"
+						class="px-2.5 py-2 cursor-pointer select-none"
 						on:click={() => setSortKey('email')}
 						on:click={() => setSortKey('email')}
 					>
 					>
 						<div class="flex gap-1.5 items-center">
 						<div class="flex gap-1.5 items-center">
@@ -301,7 +297,7 @@
 
 
 					<th
 					<th
 						scope="col"
 						scope="col"
-						class="px-3 py-1.5 cursor-pointer select-none"
+						class="px-2.5 py-2 cursor-pointer select-none"
 						on:click={() => setSortKey('last_active_at')}
 						on:click={() => setSortKey('last_active_at')}
 					>
 					>
 						<div class="flex gap-1.5 items-center">
 						<div class="flex gap-1.5 items-center">
@@ -324,7 +320,7 @@
 					</th>
 					</th>
 					<th
 					<th
 						scope="col"
 						scope="col"
-						class="px-3 py-1.5 cursor-pointer select-none"
+						class="px-2.5 py-2 cursor-pointer select-none"
 						on:click={() => setSortKey('created_at')}
 						on:click={() => setSortKey('created_at')}
 					>
 					>
 						<div class="flex gap-1.5 items-center">
 						<div class="flex gap-1.5 items-center">
@@ -347,7 +343,7 @@
 
 
 					<th
 					<th
 						scope="col"
 						scope="col"
-						class="px-3 py-1.5 cursor-pointer select-none"
+						class="px-2.5 py-2 cursor-pointer select-none"
 						on:click={() => setSortKey('oauth_sub')}
 						on:click={() => setSortKey('oauth_sub')}
 					>
 					>
 						<div class="flex gap-1.5 items-center">
 						<div class="flex gap-1.5 items-center">
@@ -369,7 +365,7 @@
 						</div>
 						</div>
 					</th>
 					</th>
 
 
-					<th scope="col" class="px-3 py-2 text-right" />
+					<th scope="col" class="px-2.5 py-2 text-right" />
 				</tr>
 				</tr>
 			</thead>
 			</thead>
 			<tbody class="">
 			<tbody class="">

+ 1 - 1
src/routes/(app)/admin/+layout.svelte

@@ -98,7 +98,7 @@
 			</div>
 			</div>
 		</nav>
 		</nav>
 
 
-		<div class=" pb-1 px-[16px] flex-1 max-h-full overflow-y-auto">
+		<div class="  pb-1 flex-1 max-h-full overflow-y-auto">
 			<slot />
 			<slot />
 		</div>
 		</div>
 	</div>
 	</div>