From 618b0511baf73b7f8ee07cdf7aca974dfd8f56c1 Mon Sep 17 00:00:00 2001 From: Zhang Minghan Date: Sat, 9 Sep 2023 22:26:26 +0800 Subject: [PATCH] fix inline flex --- app/src/assets/chat.less | 8 ++++++-- app/src/conf.ts | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/src/assets/chat.less b/app/src/assets/chat.less index 3222e62..fdc265f 100644 --- a/app/src/assets/chat.less +++ b/app/src/assets/chat.less @@ -76,6 +76,9 @@ } .message-content { + display: flex; + flex-direction: column; + max-width: 100%; padding: 8px 16px; border-radius: var(--radius); border: 1px solid hsl(var(--border)); @@ -174,7 +177,7 @@ } .bing { - display: flex; + display: inline-flex; flex-direction: row; align-items: center; vertical-align: center; @@ -188,10 +191,11 @@ width: max-content; user-select: none; word-wrap: anywhere; - max-width: calc(100vw - 76px); + max-width: calc(100vw - 102px); svg { width: 20px; height: 20px; + flex-shrink: 0; } } diff --git a/app/src/conf.ts b/app/src/conf.ts index 1ec28fb..4fb314d 100644 --- a/app/src/conf.ts +++ b/app/src/conf.ts @@ -1,6 +1,6 @@ import axios from "axios"; -export const version: string = "2.1.0"; +export const version: string = "2.2.0"; export const deploy: boolean = true; export let rest_api: string = "http://localhost:8094"; export let ws_api: string = "ws://localhost:8094";