diff --git a/src/games/ai-story/assets/style.css b/src/games/ai-story/assets/style.css index ab8f09f..4ea6402 100644 --- a/src/games/ai-story/assets/style.css +++ b/src/games/ai-story/assets/style.css @@ -88,6 +88,7 @@ body { display: flex; flex-direction: row; justify-content: center; + background-color: var(--backgroundColor); } .app { diff --git a/src/games/ai-story/components/app.tsx b/src/games/ai-story/components/app.tsx index 4d4aa76..9aa469a 100644 --- a/src/games/ai-story/components/app.tsx +++ b/src/games/ai-story/components/app.tsx @@ -2,11 +2,9 @@ import { Header } from "./header/header"; import { Chat } from "./chat"; import { Input } from "./input"; -import bgImage from '../assets/bg.jpg'; - export const App = () => { return ( -
+
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