From c1a5a2ba3f8a80005e72332ce2828d2a79b3f811 Mon Sep 17 00:00:00 2001 From: BeepBeepBopBop <116374330+BeepBeepBopBop@users.noreply.github.com> Date: Thu, 19 Dec 2024 23:27:43 +0100 Subject: [PATCH] move css to separated files --- LM-Kit-Maestro/UI/Razor/Components/Chat.razor | 228 +++--------------- .../UI/Razor/Components/Chat.razor.css | 145 +++++++++++ .../UI/Razor/Components/ChatMessage.razor | 124 ---------- .../UI/Razor/Components/ChatMessage.razor.css | 121 ++++++++++ .../UI/Razor/Components/UserInput.razor | 104 -------- .../UI/Razor/Components/UserInput.razor.css | 103 ++++++++ LM-Kit-Maestro/UI/Razor/MainLayout.razor | 2 +- LM-Kit-Maestro/UI/Razor/MainLayout.razor.css | 3 +- LM-Kit-Maestro/wwwroot/index.html | 2 +- 9 files changed, 413 insertions(+), 419 deletions(-) create mode 100644 LM-Kit-Maestro/UI/Razor/Components/Chat.razor.css create mode 100644 LM-Kit-Maestro/UI/Razor/Components/ChatMessage.razor.css create mode 100644 LM-Kit-Maestro/UI/Razor/Components/UserInput.razor.css diff --git a/LM-Kit-Maestro/UI/Razor/Components/Chat.razor b/LM-Kit-Maestro/UI/Razor/Components/Chat.razor index 9b431c1..1eef6d3 100644 --- a/LM-Kit-Maestro/UI/Razor/Components/Chat.razor +++ b/LM-Kit-Maestro/UI/Razor/Components/Chat.razor @@ -10,46 +10,46 @@
+ class="chat-element dark @(ViewModel.ConversationListViewModel.CurrentConversation is { IsEmpty: true } ? "centered-container" : "top-align-container")"> @if (ViewModel?.ConversationListViewModel.CurrentConversation != null) { if (ViewModel.ConversationListViewModel.CurrentConversation.IsEmpty) { -
-
-
Hello, human.
-
- It is likely that similar software programs are now assuming professional tasks that - were - previously your responsibility. -
-
- Developers and other software programs are working to enhance my - ability to assist you in the process of making sense about this, or to generate witty - jokes - involving robots and humans. -
-
- -
-
- Press Enter to send a new message -
- -
- Hold Shift + Enter to insert a new line -
-
-
+
+
+
Hello, human.
+
+ It is likely that similar software programs are now assuming professional tasks that + were + previously your responsibility. +
+
+ Developers and other software programs are working to enhance my + ability to assist you in the process of making sense about this, or to generate witty + jokes + involving robots and humans. +
+
+ +
+
+ Press Enter to send a new message +
+ +
+ Hold Shift + Enter to insert a new line +
+
+
} else { -
+
@foreach (var message in ViewModel.ConversationListViewModel.CurrentConversation.Messages) { - + } -
+
} }
@@ -58,179 +58,31 @@
@if (!IsScrolledToEnd) { - + }
- +
-
+
@if (ViewModel?.ConversationListViewModel?.CurrentConversation?.LMKitConversation?.ContextSize > 0) { - Tokens: @ViewModel.ConversationListViewModel.CurrentConversation.LMKitConversation.ContextUsedSpace / + Tokens: @ViewModel.ConversationListViewModel.CurrentConversation.LMKitConversation.ContextUsedSpace / @ViewModel.ConversationListViewModel.CurrentConversation.LMKitConversation.ContextSize - (@CalculateUsagePercentage(ViewModel.ConversationListViewModel.CurrentConversation.LMKitConversation.ContextUsedSpace, - ViewModel.ConversationListViewModel.CurrentConversation.LMKitConversation.ContextSize)%) + (@CalculateUsagePercentage(ViewModel.ConversationListViewModel.CurrentConversation.LMKitConversation.ContextUsedSpace, + ViewModel.ConversationListViewModel.CurrentConversation.LMKitConversation.ContextSize)%) } +
- - -