fix(webui): lock user-field height and suppress benign ResizeObserver limit warnings

This commit is contained in:
yiling
2026-06-22 11:40:48 +08:00
parent 4806c63906
commit 77093aa294
2 changed files with 13 additions and 1 deletions
@@ -66,7 +66,7 @@ const UserField: React.FC<FieldProps<string>> = ({ value, onSave, readOnly }) =>
<PopoverTrigger asChild>
<div
onClick={handleStartEdit}
className={`flex items-center justify-between w-full min-h-[28px] px-2 py-1 rounded border border-transparent transition-colors ${
className={`flex items-center justify-between w-full h-[28px] px-2 rounded border border-transparent transition-colors ${
!readOnly ? 'cursor-pointer hover:bg-accent hover:border-border group' : ''
}`}
>
+12
View File
@@ -5,6 +5,18 @@ import ReactDOM from 'react-dom/client'
import { ThemeProvider } from './components/theme-provider'
import { routeTree } from './routeTree.gen'
if (typeof window !== 'undefined') {
const resizeObserverErrorNames = [
'ResizeObserver loop limit exceeded',
'ResizeObserver loop completed with undelivered notifications.',
]
window.addEventListener('error', (e) => {
if (resizeObserverErrorNames.includes(e.message)) {
e.stopImmediatePropagation()
}
})
}
const queryClient = new QueryClient()
// Set up a Router instance