diff --git a/src/games/ai-story/components/header/connectionEditor.tsx b/src/games/ai-story/components/header/connectionEditor.tsx
index 35860b8..c434fda 100644
--- a/src/games/ai-story/components/header/connectionEditor.tsx
+++ b/src/games/ai-story/components/header/connectionEditor.tsx
@@ -35,7 +35,12 @@ export const ConnectionEditor = ({ connection, setConnection }: IProps) => {
Connection.getContextLength(connection).then(setContextLength);
} else if (connection.type === 'horde') {
Connection.getHordeModels()
- .then(m => setHordeModels(Array.from(m.values()).sort((a, b) => a.name.localeCompare(b.name))));
+ .then(m => setHordeModels(Array.from(
+ m.values())
+ .sort((a, b) =>
+ b.maxContext - a.maxContext || a.name.localeCompare(b.name)
+ )
+ ));
}
}, [connection]);
diff --git a/src/games/ai-story/components/header/header.module.css b/src/games/ai-story/components/header/header.module.css
index 13d8aa6..5613743 100644
--- a/src/games/ai-story/components/header/header.module.css
+++ b/src/games/ai-story/components/header/header.module.css
@@ -66,26 +66,26 @@
flex-wrap: wrap;
}
-.lore {
+.modal {
display: flex;
flex-direction: column;
gap: 10px;
min-height: 80dvh;
+}
- .currentStory {
- display: flex;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- gap: 10px;
+.currentStory {
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ align-items: center;
+ gap: 10px;
- .storiesSelector {
- height: 24px;
- flex-grow: 1;
- }
- }
-
- .loreText {
+ .storiesSelector {
+ height: 24px;
flex-grow: 1;
}
+}
+
+.loreText {
+ flex-grow: 1;
}
\ No newline at end of file
diff --git a/src/games/ai-story/components/header/header.tsx b/src/games/ai-story/components/header/header.tsx
index 0bd4e3c..928405b 100644
--- a/src/games/ai-story/components/header/header.tsx
+++ b/src/games/ai-story/components/header/header.tsx
@@ -130,7 +130,7 @@ export const Header = () => {
Connection settings
-
+
Lore Editor