Skip to content

Commit d7663a1

Browse files
authored
🚦 fix: support ios viewport height (#9)
1 parent 58db14c commit d7663a1

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html>
33
<head>
44
<meta charset="UTF-8" />
55
<link rel="icon" href="/favicon.svg" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover, user-scalable=no" />
77
<title>MVP Vue3 大模型单轮 AI 对话</title>
88
</head>
99
<body>

src/components/Layout/SlotFrame.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ defineOptions({
2828

2929
<style lang="scss" scoped>
3030
.slot-frame-layout-container {
31-
--at-apply: flex flex-col h-100vh;
31+
--at-apply: h-100dvh;
32+
--at-apply: flex flex-col;
3233
--at-apply: overflow-hidden;
3334
3435
.top,

src/components/MarkdownPreview/index.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ const handlePassClip = () => {
284284
}
285285
286286
const emptyPlaceholder = isMockDevelopment
287-
? '当前为模拟环境,随便问一个问题,我才会消失 ~'
287+
? '当前为模拟环境\n随便问一个问题,我才会消失 ~'
288288
: '问一个问题,我才会消失 ~'
289289
</script>
290290

@@ -346,8 +346,12 @@ const emptyPlaceholder = isMockDevelopment
346346
v-if="!displayText"
347347
size="large"
348348
class="font-bold"
349-
:description="emptyPlaceholder"
350349
>
350+
<div
351+
whitespace-break-spaces
352+
text-center
353+
v-html="emptyPlaceholder"
354+
></div>
351355
<template #icon>
352356
<n-icon>
353357
<div class="i-hugeicons:ai-chat-02"></div>

0 commit comments

Comments
 (0)