+
{isGuest ? : }
{sessionListVisible ? null : }
-
+
{placeholderVisible && (isGuest ? : )}
{channel_id !== 0 &&
(isGuest ? (
@@ -71,7 +72,7 @@ function ChatPage() {
))}
{user_id !== 0 && }
-
+
>
);
}
diff --git a/src/routes/chat/styled.tsx b/src/routes/chat/styled.tsx
deleted file mode 100644
index c775fd38..00000000
--- a/src/routes/chat/styled.tsx
+++ /dev/null
@@ -1,157 +0,0 @@
-import styled from "styled-components";
-const StyledWrapper = styled.div`
- display: flex;
- height: 100%;
- padding-top: 8px;
- padding-bottom: 10px;
- padding-right: 4px;
- > .left {
- flex-direction: column;
- min-width: 268px;
- box-shadow: inset -1px 0px 0px rgba(0, 0, 0, 0.05);
- height: 100%;
- border-radius: 16px 0 0 16px;
- .list {
- margin: 12px 8px;
- &.dms {
- flex: 1;
- }
- .title {
- padding: 0 8px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 4px;
- cursor: pointer;
- > .txt {
- user-select: none;
- display: flex;
- align-items: center;
- gap: 5px;
- font-weight: bold;
- font-size: 12px;
- line-height: 20px;
- color: #78787c;
- }
- .icon {
- transition: transform 0.5s ease;
- transform-origin: center;
- }
- .add_icon {
- width: 18px;
- height: 18px;
- }
- }
- > .nav {
- display: flex;
- flex-direction: column;
- gap: 4px;
- a {
- text-decoration: none;
- }
- .session {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 8px;
- padding: 4px 8px;
- border-radius: 4px;
- &:hover,
- &.active {
- background: rgba(116, 127, 141, 0.1);
- }
- .details {
- display: flex;
- flex-direction: column;
- width: 100%;
- .up {
- display: flex;
- justify-content: space-between;
- align-items: center;
- .name {
- font-weight: 600;
- font-size: 14px;
- line-height: 20px;
- color: #52525b;
- max-width: 112px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- time {
- white-space: nowrap;
- font-weight: 500;
- font-size: 12px;
- line-height: 18px;
- color: #78787c;
- }
- }
- .down {
- display: flex;
- justify-content: space-between;
- .msg {
- min-height: 18px;
- font-weight: normal;
- font-size: 12px;
- line-height: 18px;
- color: #78787c;
- white-space: nowrap;
- overflow: hidden;
- width: 140px;
- text-overflow: ellipsis;
- }
- > .badge {
- color: #fff;
- height: 20px;
- min-width: 20px;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 10px;
- background: #1fe1f9;
- font-weight: 900;
- font-size: 10px;
- line-height: 10px;
- &.dot {
- min-width: unset;
- width: 6px;
- height: 6px;
- padding: 0;
- }
- &.mute {
- background: #bfbfbf;
- }
- }
- }
- }
- }
- /* drop files effect */
- .drop_over {
- box-shadow: inset 0 0 0 2px #52edff;
- }
- }
- &.collapse {
- .title .icon {
- transform: rotate(-90deg);
- }
- > .nav > .link:not(.active) {
- display: none;
- }
- }
- }
- }
-
- > .right {
- border-radius: 0 16px 16px 0;
- width: 100%;
- &.placeholder {
- height: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- }
-
-`;
-
-export default StyledWrapper;
diff --git a/src/routes/favs/index.tsx b/src/routes/favs/index.tsx
index b1a74b53..0271dfb5 100644
--- a/src/routes/favs/index.tsx
+++ b/src/routes/favs/index.tsx
@@ -145,7 +145,7 @@ function FavsPage() {
] = messages;
const tip =
{gid ? <> {channelData[gid]?.name}> : <>
- From {userData[uid]?.name}
+ From {userData[uid]?.name}
>}
;
return (
@@ -156,8 +156,8 @@ function FavsPage() {
-
diff --git a/src/routes/home/index.tsx b/src/routes/home/index.tsx
index 47827fd7..d256c557 100644
--- a/src/routes/home/index.tsx
+++ b/src/routes/home/index.tsx
@@ -51,30 +51,30 @@ function HomePage() {
// 有点绕
const chatNav = isChatHomePath ? "/chat" : chatPath || "/chat";
const userNav = userPath || "/users";
- const linkClass = `flex items-center gap-2.5 px-3 py-2 font-semibold text-sm text-gray-600 rounded-lg hover:bg-black/10`;
+ const linkClass = `flex items-center gap-2.5 px-3 py-2 font-semibold text-sm text-gray-600 rounded-lg hover:bg-gray-800/10`;
return (
<>