Browse Source

Merge pull request #17819 from silentoplayz/fix-layout-and-i18n

fix: i81n.t and correct button layout issue
Tim Jaeryang Baek 1 week ago
parent
commit
1283a8ce79

+ 1 - 1
src/lib/components/playground/Chat.svelte

@@ -296,7 +296,7 @@
 					<div
 						class="flex justify-between flex-col sm:flex-row items-start sm:items-center gap-2 mt-2"
 					>
-						<div class="flex-1 shrink-0">
+						<div class="shrink-0">
 							<button
 								type="button"
 								class="px-3.5 py-1.5 text-sm font-medium bg-gray-50 hover:bg-gray-100 text-gray-900 dark:bg-gray-850 dark:hover:bg-gray-800 dark:text-gray-200 transition rounded-lg shrink-0 {($settings?.highContrastMode ??

+ 1 - 1
src/routes/(app)/workspace/models/create/+page.svelte

@@ -16,7 +16,7 @@
 	const onSubmit = async (modelInfo) => {
 		if ($models.find((m) => m.id === modelInfo.id)) {
 			toast.error(
-				i18n.t(
+				$i18n.t(
 					"Error: A model with the ID '{{modelId}}' already exists. Please select a different ID to proceed.",
 					{ modelId: modelInfo.id }
 				)