mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-30 23:26:39 +08:00
opt: adjust position of edit text
This commit is contained in:
parent
cc255eea3c
commit
568cd7d194
@ -252,9 +252,12 @@
|
||||
right: 10px;
|
||||
pointer-events: all;
|
||||
}
|
||||
.chat-message-top-left-actions {
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.chat-message-bottom-actions {
|
||||
opacity: 1;
|
||||
left:10px;
|
||||
right: 10px;
|
||||
pointer-events: all;
|
||||
}
|
||||
}
|
||||
@ -289,7 +292,6 @@
|
||||
.chat-message-item {
|
||||
box-sizing: border-box;
|
||||
max-width: 100%;
|
||||
min-width: 70px;
|
||||
margin-top: 10px;
|
||||
border-radius: 10px;
|
||||
background-color: rgba(0, 0, 0, 0.05);
|
||||
@ -330,10 +332,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
.chat-message-top-left-actions {
|
||||
.chat-message-bottom-actions {
|
||||
font-size: 12px;
|
||||
position: absolute;
|
||||
top: -26px;
|
||||
transition: all ease 0.3s;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
@ -341,7 +341,7 @@
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
|
||||
.chat-message-top-left-action {
|
||||
.chat-message-bottom-action {
|
||||
opacity: 0.5;
|
||||
color: var(--black);
|
||||
white-space: nowrap;
|
||||
@ -374,6 +374,13 @@
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
.chat-message-action-edit {
|
||||
opacity: 0.5;
|
||||
color: var(--black);
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.chat-message-action-edit-button {
|
||||
width: 24px;
|
||||
height: 15px;
|
||||
|
@ -467,16 +467,6 @@ export function Chat(props: {
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
{isUser && !message.preview && !message.isEditing && (
|
||||
<div className={styles["chat-message-top-left-actions"]}>
|
||||
<div
|
||||
className={styles["chat-message-top-left-action"]}
|
||||
onClick={() => onEdit(message)}>,
|
||||
{Locale.Chat.Actions.Edit}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
{(message.preview || message.content.length === 0) &&
|
||||
!isUser ? (
|
||||
<LoadingIcon />
|
||||
@ -503,6 +493,16 @@ export function Chat(props: {
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{isUser && !message.preview && !message.isEditing && (
|
||||
<div className={styles["chat-message-bottom-actions"]}>
|
||||
<div
|
||||
className={styles["chat-message-bottom-action"]}
|
||||
onClick={() => onEdit(message)}>
|
||||
{Locale.Chat.Actions.Edit}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
{!isUser && !message.preview && (
|
||||
<div className={styles["chat-message-actions"]}>
|
||||
<div className={styles["chat-message-action-date"]}>
|
||||
|
@ -86,7 +86,7 @@ const cn = {
|
||||
List: "自定义提示词列表",
|
||||
ListCount: (builtin: number, custom: number) =>
|
||||
`内置 ${builtin} 条,用户定义 ${custom} 条`,
|
||||
Edit: "编辑",
|
||||
Edit: "编辑"
|
||||
},
|
||||
HistoryCount: {
|
||||
Title: "附带历史消息数",
|
||||
|
Loading…
Reference in New Issue
Block a user