mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +00:00
Fix word-break in log view
Remove unused useUpdateEffect
This commit is contained in:
@@ -71,7 +71,7 @@ function LogManagementLayout({getConfig, formik}: any) {
|
||||
<Divider className="mb-4"/>
|
||||
</div>
|
||||
<Code size="sm" radius="none"
|
||||
className={`flex flex-col h-[50vh] max-h-[50vh] text-sm overflow-auto ${softWrap ? "whitespace-normal" : "whitespace-nowrap"}`}>
|
||||
className={`flex flex-col h-[50vh] max-h-[50vh] text-sm overflow-auto ${softWrap ? "whitespace-normal break-words" : "whitespace-nowrap"}`}>
|
||||
{logEntries.map((entry, index) => <p key={index}>{entry}</p>)}
|
||||
<div ref={logEndRef}/>
|
||||
</Code>
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
import {useEffect, useRef} from "react";
|
||||
|
||||
export default function useUpdateEffect(effect: Function, dependencies?: [any]) {
|
||||
const isInitialMount = useRef(true);
|
||||
|
||||
useEffect(() => {
|
||||
if (isInitialMount.current) {
|
||||
isInitialMount.current = false;
|
||||
} else {
|
||||
return effect();
|
||||
}
|
||||
}, dependencies);
|
||||
}
|
||||
Reference in New Issue
Block a user