|
@@ -1423,11 +1423,11 @@ const formatTime = (timeString) => {
|
|
const diffInHours = (now - date) / (1000 * 60 * 60);
|
|
const diffInHours = (now - date) / (1000 * 60 * 60);
|
|
|
|
|
|
if (diffInHours < 24) {
|
|
if (diffInHours < 24) {
|
|
- return date.toLocaleTimeString('zh-CN', { hour: '2-digit', minute: '2-digit' });
|
|
|
|
|
|
+ return date.toLocaleTimeString('zh-CN', {year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit' });
|
|
} else if (diffInHours < 48) {
|
|
} else if (diffInHours < 48) {
|
|
return '昨天';
|
|
return '昨天';
|
|
} else {
|
|
} else {
|
|
- return date.toLocaleDateString('zh-CN', { month: '2-digit', day: '2-digit' });
|
|
|
|
|
|
+ return date.toLocaleDateString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit' });
|
|
}
|
|
}
|
|
} catch (error) {
|
|
} catch (error) {
|
|
return '';
|
|
return '';
|
|
@@ -3584,24 +3584,29 @@ const updateCollapsedState = () => {
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
gap: 4px;
|
|
|
|
+ border-bottom: 1px solid #e5e6eb;
|
|
}
|
|
}
|
|
|
|
|
|
.conversation-title {
|
|
.conversation-title {
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
|
+ color: #333;
|
|
line-height: 1.4;
|
|
line-height: 1.4;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
text-overflow: ellipsis;
|
|
display: -webkit-box;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-box-orient: vertical;
|
|
|
|
+ white-space:nowrap;
|
|
|
|
+ overflow:hidden;
|
|
|
|
+ text-overflow:ellipsis;
|
|
}
|
|
}
|
|
|
|
|
|
.conversation-meta {
|
|
.conversation-meta {
|
|
display: flex;
|
|
display: flex;
|
|
- justify-content: space-between;
|
|
|
|
|
|
+
|
|
align-items: center;
|
|
align-items: center;
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
- color: var(--secondary-text);
|
|
|
|
|
|
+ color: #666;
|
|
}
|
|
}
|
|
|
|
|
|
.conversation-time {
|
|
.conversation-time {
|
|
@@ -4679,7 +4684,7 @@ const updateCollapsedState = () => {
|
|
|
|
|
|
/* 添加配置容器的样式 */
|
|
/* 添加配置容器的样式 */
|
|
.config-container {
|
|
.config-container {
|
|
- margin-top: auto;
|
|
|
|
|
|
+ margin-top: 50px;
|
|
border-top: 1px solid rgba(0, 0, 0, 0.06);
|
|
border-top: 1px solid rgba(0, 0, 0, 0.06);
|
|
}
|
|
}
|
|
.config-header {
|
|
.config-header {
|