mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-22 17:31:15 +08:00
Compare commits
10 Commits
feature/ar
...
codex/upda
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
615832f112 | ||
|
|
cab8cd06dc | ||
|
|
b77a96938a | ||
|
|
df4a707e3a | ||
|
|
14ee5faa1f | ||
|
|
2eebc1c004 | ||
|
|
135a6b8c51 | ||
|
|
c43e4b85bc | ||
|
|
fb3a2839db | ||
|
|
5534573a19 |
@@ -10,6 +10,7 @@ import java.util.List;
|
|||||||
|
|
||||||
public interface PointHistoryRepository extends JpaRepository<PointHistory, Long> {
|
public interface PointHistoryRepository extends JpaRepository<PointHistory, Long> {
|
||||||
List<PointHistory> findByUserOrderByIdDesc(User user);
|
List<PointHistory> findByUserOrderByIdDesc(User user);
|
||||||
|
List<PointHistory> findByUserOrderByIdAsc(User user);
|
||||||
long countByUser(User user);
|
long countByUser(User user);
|
||||||
|
|
||||||
List<PointHistory> findByUserAndCreatedAtAfterOrderByCreatedAtDesc(User user, LocalDateTime createdAt);
|
List<PointHistory> findByUserAndCreatedAtAfterOrderByCreatedAtDesc(User user, LocalDateTime createdAt);
|
||||||
|
|||||||
@@ -225,17 +225,20 @@ public class PointService {
|
|||||||
*/
|
*/
|
||||||
public int recalculateUserPoints(User user) {
|
public int recalculateUserPoints(User user) {
|
||||||
// 获取用户所有的积分历史记录(由于@Where注解,已删除的记录会被自动过滤)
|
// 获取用户所有的积分历史记录(由于@Where注解,已删除的记录会被自动过滤)
|
||||||
List<PointHistory> histories = pointHistoryRepository.findByUserOrderByIdDesc(user);
|
List<PointHistory> histories = pointHistoryRepository.findByUserOrderByIdAsc(user);
|
||||||
|
|
||||||
int totalPoints = 0;
|
int totalPoints = 0;
|
||||||
for (PointHistory history : histories) {
|
for (PointHistory history : histories) {
|
||||||
totalPoints += history.getAmount();
|
totalPoints += history.getAmount();
|
||||||
|
// 重新计算每条历史记录的余额
|
||||||
|
history.setBalance(totalPoints);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新用户积分
|
// 批量更新历史记录及用户积分
|
||||||
|
pointHistoryRepository.saveAll(histories);
|
||||||
user.setPoint(totalPoints);
|
user.setPoint(totalPoints);
|
||||||
userRepository.save(user);
|
userRepository.save(user);
|
||||||
|
|
||||||
return totalPoints;
|
return totalPoints;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.openisle.service;
|
package com.openisle.service;
|
||||||
|
|
||||||
import com.openisle.exception.FieldException;
|
import com.openisle.exception.FieldException;
|
||||||
|
import org.apache.commons.lang3.math.NumberUtils;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -17,6 +18,11 @@ public class UsernameValidator {
|
|||||||
if (username == null || username.isEmpty()) {
|
if (username == null || username.isEmpty()) {
|
||||||
throw new FieldException("username", "Username cannot be empty");
|
throw new FieldException("username", "Username cannot be empty");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (NumberUtils.isDigits(username)) {
|
||||||
|
throw new FieldException("username", "Username cannot be pure number");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,67 @@
|
|||||||
|
package com.openisle.service;
|
||||||
|
|
||||||
|
import com.openisle.model.PointHistory;
|
||||||
|
import com.openisle.model.PointHistoryType;
|
||||||
|
import com.openisle.model.Role;
|
||||||
|
import com.openisle.model.User;
|
||||||
|
import com.openisle.repository.PointHistoryRepository;
|
||||||
|
import com.openisle.repository.UserRepository;
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
|
||||||
|
import org.springframework.context.annotation.Import;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
|
@DataJpaTest
|
||||||
|
@Import(PointService.class)
|
||||||
|
class PointServiceRecalculateUserPointsTest {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private PointService pointService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private UserRepository userRepository;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private PointHistoryRepository pointHistoryRepository;
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void recalculatesBalanceAfterDeletion() {
|
||||||
|
User user = new User();
|
||||||
|
user.setUsername("u");
|
||||||
|
user.setEmail("u@example.com");
|
||||||
|
user.setPassword("p");
|
||||||
|
user.setRole(Role.USER);
|
||||||
|
userRepository.save(user);
|
||||||
|
|
||||||
|
PointHistory h1 = new PointHistory();
|
||||||
|
h1.setUser(user);
|
||||||
|
h1.setType(PointHistoryType.POST);
|
||||||
|
h1.setAmount(30);
|
||||||
|
h1.setBalance(30);
|
||||||
|
h1.setCreatedAt(LocalDateTime.now().minusMinutes(2));
|
||||||
|
pointHistoryRepository.save(h1);
|
||||||
|
|
||||||
|
PointHistory h2 = new PointHistory();
|
||||||
|
h2.setUser(user);
|
||||||
|
h2.setType(PointHistoryType.COMMENT);
|
||||||
|
h2.setAmount(10);
|
||||||
|
h2.setBalance(40);
|
||||||
|
h2.setCreatedAt(LocalDateTime.now().minusMinutes(1));
|
||||||
|
pointHistoryRepository.save(h2);
|
||||||
|
|
||||||
|
user.setPoint(40);
|
||||||
|
userRepository.save(user);
|
||||||
|
|
||||||
|
pointHistoryRepository.delete(h1);
|
||||||
|
|
||||||
|
int total = pointService.recalculateUserPoints(user);
|
||||||
|
|
||||||
|
assertEquals(10, total);
|
||||||
|
assertEquals(10, userRepository.findById(user.getId()).orElseThrow().getPoint());
|
||||||
|
assertEquals(10, pointHistoryRepository.findById(h2.getId()).orElseThrow().getBalance());
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -18,7 +18,9 @@
|
|||||||
--background-color-blur: rgba(255, 255, 255, 0.57);
|
--background-color-blur: rgba(255, 255, 255, 0.57);
|
||||||
--menu-border-color: lightgray;
|
--menu-border-color: lightgray;
|
||||||
--normal-border-color: lightgray;
|
--normal-border-color: lightgray;
|
||||||
--menu-selected-background-color: rgba(242, 242, 242, 0.884);
|
--menu-selected-background-color: rgba(88, 241, 255, 0.166);
|
||||||
|
--normal-light-background-color: rgba(242, 242, 242, 0.884);
|
||||||
|
--menu-selected-background-color-hover: rgba(242, 242, 242, 0.884);
|
||||||
--menu-text-color: rgb(99, 99, 99);
|
--menu-text-color: rgb(99, 99, 99);
|
||||||
--scroller-background-color: rgba(130, 175, 180, 0.5);
|
--scroller-background-color: rgba(130, 175, 180, 0.5);
|
||||||
/* --normal-background-color: rgb(241, 241, 241); */
|
/* --normal-background-color: rgb(241, 241, 241); */
|
||||||
@@ -58,6 +60,8 @@
|
|||||||
--menu-border-color: #555;
|
--menu-border-color: #555;
|
||||||
--normal-border-color: #555;
|
--normal-border-color: #555;
|
||||||
--menu-selected-background-color: rgba(255, 255, 255, 0.1);
|
--menu-selected-background-color: rgba(255, 255, 255, 0.1);
|
||||||
|
--normal-light-background-color: rgba(255, 255, 255, 0.1);
|
||||||
|
--menu-selected-background-color-hover: rgba(17, 182, 197, 0.082);
|
||||||
--menu-text-color: rgb(173, 173, 173);
|
--menu-text-color: rgb(173, 173, 173);
|
||||||
/* --normal-background-color: #000000; */
|
/* --normal-background-color: #000000; */
|
||||||
--normal-background-color: #333;
|
--normal-background-color: #333;
|
||||||
@@ -162,7 +166,7 @@ body {
|
|||||||
padding-left: 1em;
|
padding-left: 1em;
|
||||||
border-left: 4px solid #d0d7de;
|
border-left: 4px solid #d0d7de;
|
||||||
color: var(--blockquote-text-color);
|
color: var(--blockquote-text-color);
|
||||||
background-color: var(--menu-selected-background-color);
|
background-color: var(--normal-light-background-color);
|
||||||
padding-top: 1px;
|
padding-top: 1px;
|
||||||
padding-bottom: 1px;
|
padding-bottom: 1px;
|
||||||
}
|
}
|
||||||
@@ -295,7 +299,7 @@ body {
|
|||||||
|
|
||||||
/* 鼠标悬停行高亮 */
|
/* 鼠标悬停行高亮 */
|
||||||
.info-content-text tbody tr:hover {
|
.info-content-text tbody tr:hover {
|
||||||
background-color: var(--menu-selected-background-color);
|
background-color: var(--normal-light-background-color);
|
||||||
transition: background-color 0.2s ease;
|
transition: background-color 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -316,6 +316,10 @@ const gotoTag = (t) => {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menu-item:hover {
|
||||||
|
background-color: var(--menu-selected-background-color-hover);
|
||||||
|
}
|
||||||
|
|
||||||
.menu-item.selected {
|
.menu-item.selected {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
background-color: var(--menu-selected-background-color);
|
background-color: var(--menu-selected-background-color);
|
||||||
@@ -407,7 +411,7 @@ const gotoTag = (t) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.section-item:hover {
|
.section-item:hover {
|
||||||
background-color: var(--menu-selected-background-color);
|
background-color: var(--menu-selected-background-color-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-item-text-count {
|
.section-item-text-count {
|
||||||
|
|||||||
33
frontend_nuxt/components/NewMessageContainer.vue
Normal file
33
frontend_nuxt/components/NewMessageContainer.vue
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
<template>
|
||||||
|
<div class="new-message-container" :style="{ bottom: bottom + 'px' }" @click="$emit('click')">
|
||||||
|
{{ count }} 条新消息,点击查看
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
const props = defineProps({
|
||||||
|
count: {
|
||||||
|
type: Number,
|
||||||
|
default: 0,
|
||||||
|
},
|
||||||
|
bottom: {
|
||||||
|
type: Number,
|
||||||
|
default: 0,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.new-message-container {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
background-color: var(--primary-color);
|
||||||
|
color: #fff;
|
||||||
|
padding: 6px 16px;
|
||||||
|
border-radius: 20px;
|
||||||
|
cursor: pointer;
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
||||||
|
z-index: 50;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -136,7 +136,7 @@ export default {
|
|||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: var(--menu-selected-background-color);
|
background: var(--normal-light-background-color);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|||||||
@@ -331,11 +331,11 @@ onMounted(async () => {
|
|||||||
|
|
||||||
.reactions-viewer-item.placeholder,
|
.reactions-viewer-item.placeholder,
|
||||||
.reactions-viewer-single-item.selected {
|
.reactions-viewer-single-item.selected {
|
||||||
background-color: var(--menu-selected-background-color);
|
background-color: var(--normal-light-background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.reaction-option.selected {
|
.reaction-option.selected {
|
||||||
background-color: var(--menu-selected-background-color);
|
background-color: var(--normal-light-background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
|
|||||||
@@ -65,16 +65,17 @@
|
|||||||
class="article-item"
|
class="article-item"
|
||||||
v-for="article in articles"
|
v-for="article in articles"
|
||||||
:key="article.id"
|
:key="article.id"
|
||||||
|
@click="navigateTo(`/posts/${article.id}`)"
|
||||||
>
|
>
|
||||||
<div class="article-main-container">
|
<div class="article-main-container">
|
||||||
<NuxtLink class="article-item-title main-item" :to="`/posts/${article.id}`">
|
<NuxtLink class="article-item-title main-item">
|
||||||
<pin v-if="article.pinned" theme="outline" class="pinned-icon" />
|
<pin v-if="article.pinned" theme="outline" class="pinned-icon" />
|
||||||
<gift v-if="article.type === 'LOTTERY'" class="lottery-icon" />
|
<gift v-if="article.type === 'LOTTERY'" class="lottery-icon" />
|
||||||
<ranking-list v-else-if="article.type === 'POLL'" class="poll-icon" />
|
<ranking-list v-else-if="article.type === 'POLL'" class="poll-icon" />
|
||||||
<star v-if="!article.rssExcluded" class="featured-icon" />
|
<star v-if="!article.rssExcluded" class="featured-icon" />
|
||||||
{{ article.title }}
|
{{ article.title }}
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<NuxtLink class="article-item-description main-item" :to="`/posts/${article.id}`">
|
<NuxtLink class="article-item-description main-item">
|
||||||
{{ sanitizeDescription(article.description) }}
|
{{ sanitizeDescription(article.description) }}
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<div class="article-info-container main-item">
|
<div class="article-info-container main-item">
|
||||||
@@ -488,6 +489,11 @@ const sanitizeDescription = (text) => stripMarkdown(text)
|
|||||||
border-bottom: 1px solid var(--normal-border-color);
|
border-bottom: 1px solid var(--normal-border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.article-item:hover {
|
||||||
|
background-color: var(--menu-selected-background-color-hover);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
.article-main-container,
|
.article-main-container,
|
||||||
.header-item.main-item {
|
.header-item.main-item {
|
||||||
width: calc(60% - 20px);
|
width: calc(60% - 20px);
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
:content-id="item.id"
|
:content-id="item.id"
|
||||||
@update:modelValue="(v) => (item.reactions = v)"
|
@update:modelValue="(v) => (item.reactions = v)"
|
||||||
>
|
>
|
||||||
<div class="reply-btn"><next @click="setReply(item)" /> 写个回复...</div>
|
<div @click="setReply(item)" class="reply-btn"><next /> 写个回复...</div>
|
||||||
</ReactionsGroup>
|
</ReactionsGroup>
|
||||||
</template>
|
</template>
|
||||||
</BaseTimeline>
|
</BaseTimeline>
|
||||||
@@ -62,7 +62,14 @@
|
|||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="message-input-area">
|
<NewMessageContainer
|
||||||
|
v-if="showNewMessageContainer"
|
||||||
|
:count="newMessagesCount"
|
||||||
|
:bottom="inputAreaHeight + 20"
|
||||||
|
@click="handleNewMessagesClick"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<div class="message-input-area" ref="messageInputAreaEl">
|
||||||
<div v-if="replyTo" class="active-reply">
|
<div v-if="replyTo" class="active-reply">
|
||||||
正在回复 {{ replyTo.sender.username }}:
|
正在回复 {{ replyTo.sender.username }}:
|
||||||
{{ stripMarkdownLength(replyTo.content, 50) }}
|
{{ stripMarkdownLength(replyTo.content, 50) }}
|
||||||
@@ -96,6 +103,7 @@ import { useChannelsUnreadCount } from '~/composables/useChannelsUnreadCount'
|
|||||||
import TimeManager from '~/utils/time'
|
import TimeManager from '~/utils/time'
|
||||||
import BaseTimeline from '~/components/BaseTimeline.vue'
|
import BaseTimeline from '~/components/BaseTimeline.vue'
|
||||||
import BasePlaceholder from '~/components/BasePlaceholder.vue'
|
import BasePlaceholder from '~/components/BasePlaceholder.vue'
|
||||||
|
import NewMessageContainer from '~/components/NewMessageContainer.vue'
|
||||||
|
|
||||||
const config = useRuntimeConfig()
|
const config = useRuntimeConfig()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
@@ -112,6 +120,7 @@ const error = ref(null)
|
|||||||
const conversationId = route.params.id
|
const conversationId = route.params.id
|
||||||
const currentUser = ref(null)
|
const currentUser = ref(null)
|
||||||
const messagesListEl = ref(null)
|
const messagesListEl = ref(null)
|
||||||
|
const messageInputAreaEl = ref(null)
|
||||||
const currentPage = ref(0)
|
const currentPage = ref(0)
|
||||||
const totalPages = ref(0)
|
const totalPages = ref(0)
|
||||||
const loadingMore = ref(false)
|
const loadingMore = ref(false)
|
||||||
@@ -120,6 +129,21 @@ const isChannel = ref(false)
|
|||||||
const isFloatMode = computed(() => route.query.float !== undefined)
|
const isFloatMode = computed(() => route.query.float !== undefined)
|
||||||
const floatRoute = useState('messageFloatRoute')
|
const floatRoute = useState('messageFloatRoute')
|
||||||
const replyTo = ref(null)
|
const replyTo = ref(null)
|
||||||
|
const newMessagesCount = ref(0)
|
||||||
|
const inputAreaHeight = ref(0)
|
||||||
|
const showNewMessageContainer = computed(
|
||||||
|
() => newMessagesCount.value > 0 && !isUserNearBottom.value,
|
||||||
|
)
|
||||||
|
|
||||||
|
function updateInputAreaHeight() {
|
||||||
|
if (!messageInputAreaEl.value) return
|
||||||
|
inputAreaHeight.value = messageInputAreaEl.value.offsetHeight
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleNewMessagesClick() {
|
||||||
|
scrollToBottomSmooth()
|
||||||
|
newMessagesCount.value = 0
|
||||||
|
}
|
||||||
|
|
||||||
const isUserNearBottom = ref(true)
|
const isUserNearBottom = ref(true)
|
||||||
function updateNearBottom() {
|
function updateNearBottom() {
|
||||||
@@ -329,6 +353,10 @@ onMounted(async () => {
|
|||||||
messagesListEl.value.addEventListener('scroll', updateNearBottom, { passive: true })
|
messagesListEl.value.addEventListener('scroll', updateNearBottom, { passive: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window.addEventListener('resize', updateInputAreaHeight)
|
||||||
|
await nextTick()
|
||||||
|
updateInputAreaHeight()
|
||||||
|
|
||||||
currentUser.value = await fetchCurrentUser()
|
currentUser.value = await fetchCurrentUser()
|
||||||
if (currentUser.value) {
|
if (currentUser.value) {
|
||||||
await fetchMessages(0)
|
await fetchMessages(0)
|
||||||
@@ -370,9 +398,10 @@ const subscribeToConversation = () => {
|
|||||||
|
|
||||||
await markConversationAsRead()
|
await markConversationAsRead()
|
||||||
await nextTick()
|
await nextTick()
|
||||||
|
|
||||||
if (isUserNearBottom.value) {
|
if (isUserNearBottom.value) {
|
||||||
scrollToBottomSmooth()
|
scrollToBottomSmooth()
|
||||||
|
} else {
|
||||||
|
newMessagesCount.value += 1
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('Failed to parse websocket message', e)
|
console.error('Failed to parse websocket message', e)
|
||||||
@@ -386,6 +415,14 @@ watch(isConnected, (newValue) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
watch(isUserNearBottom, (val) => {
|
||||||
|
if (val) newMessagesCount.value = 0
|
||||||
|
})
|
||||||
|
|
||||||
|
watch(replyTo, () => {
|
||||||
|
nextTick(updateInputAreaHeight)
|
||||||
|
})
|
||||||
|
|
||||||
onActivated(async () => {
|
onActivated(async () => {
|
||||||
// 返回页面时:刷新数据与已读,并滚动到底部
|
// 返回页面时:刷新数据与已读,并滚动到底部
|
||||||
if (currentUser.value) {
|
if (currentUser.value) {
|
||||||
@@ -418,6 +455,7 @@ onUnmounted(() => {
|
|||||||
if (messagesListEl.value) {
|
if (messagesListEl.value) {
|
||||||
messagesListEl.value.removeEventListener('scroll', updateNearBottom)
|
messagesListEl.value.removeEventListener('scroll', updateNearBottom)
|
||||||
}
|
}
|
||||||
|
window.removeEventListener('resize', updateInputAreaHeight)
|
||||||
})
|
})
|
||||||
|
|
||||||
function minimize() {
|
function minimize() {
|
||||||
@@ -614,7 +652,7 @@ function goBack() {
|
|||||||
border-left: 5px solid var(--primary-color);
|
border-left: 5px solid var(--primary-color);
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
background-color: var(--menu-selected-background-color);
|
background-color: var(--normal-light-background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.reply-author {
|
.reply-author {
|
||||||
@@ -634,7 +672,7 @@ function goBack() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.active-reply {
|
.active-reply {
|
||||||
background-color: var(--bg-color-soft);
|
background-color: var(--normal-light-background-color);
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
border-left: 5px solid var(--primary-color);
|
border-left: 5px solid var(--primary-color);
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
|
|||||||
@@ -419,7 +419,7 @@ function minimize() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.conversation-item:hover {
|
.conversation-item:hover {
|
||||||
background-color: var(--menu-selected-background-color);
|
background-color: var(--normal-light-background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.conversation-avatar {
|
.conversation-avatar {
|
||||||
|
|||||||
Reference in New Issue
Block a user