fuck that shit, revert
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				delpoy / build-and-deploy (push) Successful in 1m3s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	delpoy / build-and-deploy (push) Successful in 1m3s
				
			This commit is contained in:
		| @@ -6,21 +6,6 @@ | |||||||
| 	let bodyElem: HTMLTableSectionElement; | 	let bodyElem: HTMLTableSectionElement; | ||||||
| 	let intersectionElem: HTMLElement; | 	let intersectionElem: HTMLElement; | ||||||
|  |  | ||||||
| 	async function onUpdateProxy() { |  | ||||||
| 		let scrollElem: HTMLElement | null = bodyElem; |  | ||||||
| 		while (scrollElem && scrollElem.scrollHeight <= scrollElem.clientHeight) { |  | ||||||
| 			scrollElem = scrollElem.parentElement; |  | ||||||
| 		} |  | ||||||
|  |  | ||||||
| 		const scrollTop = scrollElem?.scrollTop ?? 0; |  | ||||||
|  |  | ||||||
| 		await onUpdate(); |  | ||||||
|  |  | ||||||
| 		if (scrollElem) scrollElem.scrollTop = scrollTop; |  | ||||||
|  |  | ||||||
| 		await tick(); |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| 	async function getIntersectionElement(): Promise<HTMLElement> { | 	async function getIntersectionElement(): Promise<HTMLElement> { | ||||||
| 		if (!bodyElem.lastElementChild) { | 		if (!bodyElem.lastElementChild) { | ||||||
| 			await new Promise<void>((resolve) => { | 			await new Promise<void>((resolve) => { | ||||||
| @@ -36,7 +21,8 @@ | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	onMount(async () => { | 	onMount(async () => { | ||||||
| 		await onUpdateProxy(); | 		await onUpdate(); | ||||||
|  | 		await tick(); | ||||||
|  |  | ||||||
| 		if (!bodyElem) return; | 		if (!bodyElem) return; | ||||||
|  |  | ||||||
| @@ -47,7 +33,8 @@ | |||||||
|  |  | ||||||
| 				const rows = bodyElem.rows.length; | 				const rows = bodyElem.rows.length; | ||||||
|  |  | ||||||
| 				await onUpdateProxy(); | 				await onUpdate(); | ||||||
|  | 				await tick(); | ||||||
|  |  | ||||||
| 				if (rows === bodyElem.rows.length) return; | 				if (rows === bodyElem.rows.length) return; | ||||||
| 				observer.observe((intersectionElem = await getIntersectionElement())); | 				observer.observe((intersectionElem = await getIntersectionElement())); | ||||||
|   | |||||||
| @@ -133,7 +133,7 @@ | |||||||
| 	<div class="grid"> | 	<div class="grid"> | ||||||
| 		{#key $page.url.pathname} | 		{#key $page.url.pathname} | ||||||
| 			<div | 			<div | ||||||
| 				class="col-[1] row-[1] h-[calc(100vh-3rem)] w-full overflow-y-scroll overflow-x-hidden" | 				class="col-[1] row-[1] h-full w-full overflow-y-scroll overflow-x-hidden" | ||||||
| 				in:fly={{ x: transitionPrefix * window.innerWidth, duration: !transitionPrefix ? 0 : 100 }} | 				in:fly={{ x: transitionPrefix * window.innerWidth, duration: !transitionPrefix ? 0 : 100 }} | ||||||
| 				out:fly={{ | 				out:fly={{ | ||||||
| 					x: transitionPrefix * -window.innerWidth, | 					x: transitionPrefix * -window.innerWidth, | ||||||
| @@ -145,7 +145,7 @@ | |||||||
| 		{/key} | 		{/key} | ||||||
| 	</div> | 	</div> | ||||||
| {:else} | {:else} | ||||||
| 	<div class="h-[calc(100vh-3rem)] w-full"> | 	<div class="h-full w-full"> | ||||||
| 		{@render children()} | 		{@render children()} | ||||||
| 	</div> | 	</div> | ||||||
| {/if} | {/if} | ||||||
|   | |||||||
| @@ -66,7 +66,6 @@ | |||||||
| 			onUpdate={() => fetchFeedback({ from: 0 }).then((r) => (feedbacks = r))} | 			onUpdate={() => fetchFeedback({ from: 0 }).then((r) => (feedbacks = r))} | ||||||
| 		/> | 		/> | ||||||
| 		<hr class="divider my-1 mx-8 border-none" /> | 		<hr class="divider my-1 mx-8 border-none" /> | ||||||
| 		<div class="h-full overflow-scroll"> |  | ||||||
| 		<table class="table table-fixed h-fit"> | 		<table class="table table-fixed h-fit"> | ||||||
| 			<thead> | 			<thead> | ||||||
| 			<tr> | 			<tr> | ||||||
| @@ -127,7 +126,6 @@ | |||||||
| 			</PaginationTableBody> | 			</PaginationTableBody> | ||||||
| 		</table> | 		</table> | ||||||
| 	</div> | 	</div> | ||||||
| 	</div> |  | ||||||
| 	{#if activeFeedback} | 	{#if activeFeedback} | ||||||
| 		<div | 		<div | ||||||
| 			class="relative flex flex-col w-2/5 h-[calc(100vh-3rem)] bg-base-200/50 px-4 py-6 overflow-scroll" | 			class="relative flex flex-col w-2/5 h-[calc(100vh-3rem)] bg-base-200/50 px-4 py-6 overflow-scroll" | ||||||
|   | |||||||
| @@ -115,7 +115,6 @@ | |||||||
| 			</div> | 			</div> | ||||||
| 		</div> | 		</div> | ||||||
| 		<hr class="divider my-1 mx-8 border-none" /> | 		<hr class="divider my-1 mx-8 border-none" /> | ||||||
| 		<div class="h-full overflow-scroll"> |  | ||||||
| 		<table class="table table-fixed h-fit"> | 		<table class="table table-fixed h-fit"> | ||||||
| 			<colgroup> | 			<colgroup> | ||||||
| 				<col style="width: 20%" /> | 				<col style="width: 20%" /> | ||||||
| @@ -206,7 +205,6 @@ | |||||||
| 			</PaginationTableBody> | 			</PaginationTableBody> | ||||||
| 		</table> | 		</table> | ||||||
| 	</div> | 	</div> | ||||||
| 	</div> |  | ||||||
| 	{#if activeReport} | 	{#if activeReport} | ||||||
| 		<div | 		<div | ||||||
| 			class="relative flex flex-col w-2/5 h-[calc(100vh-3rem)] bg-base-200/50 px-4 py-6 overflow-scroll" | 			class="relative flex flex-col w-2/5 h-[calc(100vh-3rem)] bg-base-200/50 px-4 py-6 overflow-scroll" | ||||||
|   | |||||||
| @@ -96,7 +96,7 @@ | |||||||
| 		<table class="table table-auto"> | 		<table class="table table-auto"> | ||||||
| 			<thead> | 			<thead> | ||||||
| 			<!-- prettier-ignore --> | 			<!-- prettier-ignore --> | ||||||
| 				<SortableTr> | 			<SortableTr class="[&>th]:bg-base-100 [&>th]:z-[1] [&>th]:sticky [&>th]:top-0"> | ||||||
| 				<th></th> | 				<th></th> | ||||||
| 				<SortableTh onSort={(e) => userFilter = {...userFilter, sort: {key: 'firstname', asc: e.asc}}}>Vorname</SortableTh> | 				<SortableTh onSort={(e) => userFilter = {...userFilter, sort: {key: 'firstname', asc: e.asc}}}>Vorname</SortableTh> | ||||||
| 				<SortableTh onSort={(e) => userFilter = {...userFilter, sort: {key: 'lastname', asc: e.asc}}}>Nachname</SortableTh> | 				<SortableTh onSort={(e) => userFilter = {...userFilter, sort: {key: 'lastname', asc: e.asc}}}>Nachname</SortableTh> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user