Skip to content

Commit

Permalink
🚦 fix: support ios viewport height (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdsuwwz authored Jul 31, 2024
1 parent 58db14c commit d7663a1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover, user-scalable=no" />
<title>MVP Vue3 大模型单轮 AI 对话</title>
</head>
<body>
Expand Down
3 changes: 2 additions & 1 deletion src/components/Layout/SlotFrame.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ defineOptions({

<style lang="scss" scoped>
.slot-frame-layout-container {
--at-apply: flex flex-col h-100vh;
--at-apply: h-100dvh;
--at-apply: flex flex-col;
--at-apply: overflow-hidden;
.top,
Expand Down
8 changes: 6 additions & 2 deletions src/components/MarkdownPreview/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ const handlePassClip = () => {
}
const emptyPlaceholder = isMockDevelopment
? '当前为模拟环境,随便问一个问题,我才会消失 ~'
? '当前为模拟环境\n随便问一个问题,我才会消失 ~'
: '问一个问题,我才会消失 ~'
</script>

Expand Down Expand Up @@ -346,8 +346,12 @@ const emptyPlaceholder = isMockDevelopment
v-if="!displayText"
size="large"
class="font-bold"
:description="emptyPlaceholder"
>
<div
whitespace-break-spaces
text-center
v-html="emptyPlaceholder"
></div>
<template #icon>
<n-icon>
<div class="i-hugeicons:ai-chat-02"></div>
Expand Down

0 comments on commit d7663a1

Please sign in to comment.