From d4cfc65b277b56a27d75cc40aee3634c3ed84346 Mon Sep 17 00:00:00 2001 From: perf3ct Date: Wed, 12 Mar 2025 21:15:57 +0000 Subject: [PATCH] yes, now the failed embeddings section at least looks passable --- .../type_widgets/options/ai_settings.ts | 43 ++++++++++--------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/src/public/app/widgets/type_widgets/options/ai_settings.ts b/src/public/app/widgets/type_widgets/options/ai_settings.ts index a97e95a0e..3af92168a 100644 --- a/src/public/app/widgets/type_widgets/options/ai_settings.ts +++ b/src/public/app/widgets/type_widgets/options/ai_settings.ts @@ -877,32 +877,35 @@ export default class AiSettingsWidget extends OptionsWidget { } } - // Use the application's note-list-item styling + // Use the application's native note-list-item styling without custom font styles const $item = $(`
-
-
-
-
${note.title || note.noteId}
- ${badgeText} +
+
+ ${note.title || note.noteId} + ${badgeText} +
+
+
+ ${isPermanentlyFailed ? 'Status:' : 'Attempts:'} + ${isPermanentlyFailed ? 'Permanently failed' : note.attempts} +
+
+ Last attempt: + ${note.lastAttempt.substring(0, 19)} +
+
+ Error: + ${(note.error || 'Unknown error').substring(0, 100)}${(note.error && note.error.length > 100) ? '...' : ''}
-

- ${isPermanentlyFailed ? - `Status: Permanently failed` : - `Attempts: ${note.attempts}`} -
- Last attempt: ${note.lastAttempt.substring(0, 19)} -
- Error: ${(note.error || 'Unknown error').substring(0, 100)}${(note.error && note.error.length > 100) ? '...' : ''} -

-
-
-
+
+ +
`);