Skip to content

Commit

Permalink
Merge pull request #583 from sugarforever/fix-20241216
Browse files Browse the repository at this point in the history
Prevent the page from automatically zooming in on Safari
  • Loading branch information
satrong authored Dec 16, 2024
2 parents 32a5709 + d561b8b commit 20d1826
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions assets/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,14 @@ body {
transform: scale(1);
}
}
}

@supports (-webkit-touch-callout: none) and (overflow: -webkit-paged-x) {

textarea:focus,
input[type="input"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
font-size: 16px !important;
}
}
2 changes: 1 addition & 1 deletion composables/clientDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface ChatSession {
updateTime: number
model?: string
modelFamily?: string
models: string[]
models?: string[]
instructionId?: number
knowledgeBaseId?: number
attachedMessagesCount: number
Expand Down
3 changes: 2 additions & 1 deletion composables/useCreateChatSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ export function useCreateChatSession() {
await loadModels()
if (chatModels.value.length === 0) {
toast.add({ title: t('chat.noModelFound'), description: t('chat.noModelFoundDesc'), color: 'red' })
baseData.models = undefined
} else {
const availableModels = baseData.models.filter(m => chatModels.value.some(cm => cm.value === m))
const availableModels = baseData.models?.filter(m => chatModels.value.some(cm => cm.value === m))
baseData.models = availableModels
}

Expand Down

0 comments on commit 20d1826

Please sign in to comment.