mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-10 03:56:37 +08:00
Refactor [UI/UX Chats Page] disable displaying models in mobile
- [+] refactor(chat.tsx): simplify logic for displaying chat message action date and model - [+] fix(chat.tsx): remove unnecessary concatenation of strings in chat message action date and model
This commit is contained in:
parent
8a5b8d7f90
commit
5d7c0578b1
@ -1251,8 +1251,8 @@ function _Chat() {
|
||||
|
||||
<div className={styles["chat-message-action-date"]}>
|
||||
{isContext
|
||||
? `${Locale.Chat.IsContext} - ${Locale.Exporter.Model}: ${message.model || session.mask.modelConfig.model}`
|
||||
: `${Locale.Exporter.Time}: ${message.date.toLocaleString()} - ${Locale.Exporter.Model}: ${message.model || session.mask.modelConfig.model}`}
|
||||
? `${Locale.Chat.IsContext}${!isMobileScreen ? ` - ${Locale.Exporter.Model}: ${message.model || session.mask.modelConfig.model}` : ''}`
|
||||
: `${Locale.Exporter.Time}: ${message.date.toLocaleString()}${!isMobileScreen ? ` - ${Locale.Exporter.Model}: ${message.model || session.mask.modelConfig.model}` : ''}`}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user