diff --git a/README.md b/README.md index 3b375d0..0bf752e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,9 @@ -# chatnio -👋 Lightweight ChatGPT chat site +
+ +# [Chat Nio](https://nio.fystart.cn) + +👋 轻量级 ChatGPT 聊天平台 + +👋 Lightweight ChatGPT Chat Platform + +
diff --git a/app/src/App.vue b/app/src/App.vue index fa38950..acf3dc8 100644 --- a/app/src/App.vue +++ b/app/src/App.vue @@ -120,6 +120,12 @@ aside { align-items: center; } +@media (max-width: 600px) { + .container { + max-height: calc(100% - 112px); + } +} + @media screen and (max-width: 600px) { .card { flex-direction: column; @@ -139,10 +145,6 @@ aside { margin-right: 16px !important; } - .container { - max-height: 90%; - } - aside { width: 100%; height: max-content; diff --git a/app/src/assets/style/base.css b/app/src/assets/style/base.css index a5c8785..280c8ce 100644 --- a/app/src/assets/style/base.css +++ b/app/src/assets/style/base.css @@ -30,6 +30,10 @@ --card-text-secondary: rgba(255, 255, 255, 0.54); } +* { + outline: none; +} + a { font-weight: 500; text-decoration: inherit; diff --git a/app/src/views/HomeView.vue b/app/src/views/HomeView.vue index 6851da0..1fe0a6c 100644 --- a/app/src/views/HomeView.vue +++ b/app/src/views/HomeView.vue @@ -41,10 +41,14 @@ onMounted(() => {
+
{{ message.content }}
+
+ +
@@ -71,8 +75,7 @@ onMounted(() => { flex-direction: column; justify-content: space-between; width: 100%; - height: calc(80vh - 86px); - max-height: calc(80vh - 86px); + flex-grow: 1; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; @@ -84,7 +87,7 @@ onMounted(() => { flex-direction: row; justify-content: space-between; width: 100%; - height: 86px; + height: 74px; } .preview { @@ -212,6 +215,59 @@ onMounted(() => { fill: var(--card-text-hover); } +.avatar { + width: 42px; + height: 42px; + border-radius: 8px; + background: var(--card-input); + border: 1px solid var(--card-input-border); + transition: .5s; + flex-shrink: 0; +} + +.avatar.user { + margin-left: 12px; + background: var(--card--element); + border: 1px solid var(--card-border); +} + +.avatar.user img { + width: 42px; + height: 42px; + border-radius: 8px; + transition: .5s; +} + +.avatar.user:hover { + border: 1px solid var(--card-border-hover); +} + +.avatar.user:hover + .content { + border: 1px solid var(--card-border-hover); +} + +.avatar.user:hover + .content:hover { + border: 1px solid var(--card-border-hover); +} + +.avatar.openai { + margin-right: 12px; + background: var(--card--element); + border: 1px solid var(--card-border); +} + +.avatar.openai svg { + padding: 6px; + fill: var(--card-text); + background: var(--card-input); + border: 1px solid var(--card-input-border); + transition: .5s; +} + +.avatar.openai:hover { + border: 1px solid var(--card-border-hover); +} + @media (max-width: 600px) { .preview h1 { font-size: 32px; @@ -224,9 +280,6 @@ onMounted(() => { } @media screen and (max-width: 560px) { - .chat-wrapper { - height: calc(70vh - 86px); - max-height: calc(70vh - 86px); - } + }