From 93bc2b9688ebc0dde2ae8d5cf3e3f2628d636ff0 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 15 Aug 2023 01:16:37 +0800 Subject: ... --- FrontEnd/src/pages/setting/index.css | 26 +++++++++++++++--------- FrontEnd/src/pages/setting/index.tsx | 6 +++--- FrontEnd/src/pages/timeline/Timeline.css | 2 -- FrontEnd/src/pages/timeline/Timeline.tsx | 4 ++-- FrontEnd/src/pages/timeline/TimelineCard.tsx | 2 +- FrontEnd/src/pages/timeline/TimelinePostCard.css | 3 +-- FrontEnd/src/pages/timeline/TimelinePostCard.tsx | 2 +- FrontEnd/src/pages/timeline/index.tsx | 11 ++-------- 8 files changed, 26 insertions(+), 30 deletions(-) (limited to 'FrontEnd/src/pages') diff --git a/FrontEnd/src/pages/setting/index.css b/FrontEnd/src/pages/setting/index.css index d9cba24f..c1950f9c 100644 --- a/FrontEnd/src/pages/setting/index.css +++ b/FrontEnd/src/pages/setting/index.css @@ -17,29 +17,39 @@ .setting-section-title { padding: 0 1em; + color: white; } .setting-section-item-area { margin-top: 1em; - border-top: 1px solid var(--cru-key-container-color); + border-top: 1px solid var(--cru-secondary-color); } .setting-item-container { padding: 0.5em 1em; transition: background-color 0.3s; - color: var(--cru-surface-on-color); - background-color: var(--cru-surface-color); - border-bottom: 1px solid var(--cru-key-container-color); + background-color: var(--cru-background-color); + border-bottom: 1px solid var(--cru-secondary-color); display: flex; align-items: center; } .setting-item-container:hover { - background-color: var(--cru-key-container-1-color); + color: white; + background-color: var(--cru-secondary-color); +} + +.setting-item-container.danger { + color: var(--cru-danger-color); +} + +.setting-item-container.danger:hover { + color: white; + background-color: var(--cru-danger-color); } .setting-item-label-sub { - color: var(--cru-secondary-text-color); + color: var(--cru-text-secondary-color); } .setting-item-value-area { @@ -50,10 +60,6 @@ cursor: pointer; } -.setting-item-container.setting-type-button.danger { - color: var(--cru-danger-color); -} - .register-code { background: var(--cru-surface-container-highest-color); border: 1px solid var(--cru-surface-container-highest-color); diff --git a/FrontEnd/src/pages/setting/index.tsx b/FrontEnd/src/pages/setting/index.tsx index 8e8ae488..8673d55a 100644 --- a/FrontEnd/src/pages/setting/index.tsx +++ b/FrontEnd/src/pages/setting/index.tsx @@ -172,7 +172,7 @@ function RegisterCodeSettingItem() { onClick={(event) => { void navigator.clipboard.writeText(registerCode).then(() => { pushAlert({ - type: "success", + type: "create", message: "settings.myRegisterCodeCopied", }); }); @@ -249,7 +249,7 @@ export default function SettingPage() { return ( {user ? ( - + ) : null} - + diff --git a/FrontEnd/src/pages/timeline/Timeline.css b/FrontEnd/src/pages/timeline/Timeline.css index 30ad75c9..419ab9b1 100644 --- a/FrontEnd/src/pages/timeline/Timeline.css +++ b/FrontEnd/src/pages/timeline/Timeline.css @@ -1,5 +1,4 @@ .timeline { - --timeline-background-color: #f3f3f3; --timeline-shadow-color: #00000080; --timeline-post-line-color: #eadd2c; --timeline-post-line-shadow: 2px 1px 10px -1px var(--timeline-shadow-color); @@ -13,7 +12,6 @@ z-index: 0; position: relative; width: 100%; - background-color: var(--timeline-background-color); } @keyframes timeline-line-node { diff --git a/FrontEnd/src/pages/timeline/Timeline.tsx b/FrontEnd/src/pages/timeline/Timeline.tsx index d05336d7..3c9d73bf 100644 --- a/FrontEnd/src/pages/timeline/Timeline.tsx +++ b/FrontEnd/src/pages/timeline/Timeline.tsx @@ -156,7 +156,7 @@ export function Timeline(props: TimelineProps) { return
Error.
; } return ( - <> +
{timeline && (
)} - + ); } diff --git a/FrontEnd/src/pages/timeline/TimelineCard.tsx b/FrontEnd/src/pages/timeline/TimelineCard.tsx index 04b34ec1..b287c620 100644 --- a/FrontEnd/src/pages/timeline/TimelineCard.tsx +++ b/FrontEnd/src/pages/timeline/TimelineCard.tsx @@ -123,7 +123,7 @@ export default function TimelineCard(props: TimelinePageCardProps) { return ( + {children} ); diff --git a/FrontEnd/src/pages/timeline/index.tsx b/FrontEnd/src/pages/timeline/index.tsx index 1dffdcc1..51cc37f0 100644 --- a/FrontEnd/src/pages/timeline/index.tsx +++ b/FrontEnd/src/pages/timeline/index.tsx @@ -1,11 +1,10 @@ -import * as React from "react"; import { useParams } from "react-router-dom"; import { UiLogicError } from "@/common"; import Timeline from "./Timeline"; -const TimelinePage: React.FC = () => { +export default function TimelinePage() { const { owner, timeline: timelineNameParam } = useParams(); if (owner == null || owner == "") @@ -13,11 +12,5 @@ const TimelinePage: React.FC = () => { const timeline = timelineNameParam || "self"; - return ( -
- -
- ); + return ; }; - -export default TimelinePage; -- cgit v1.2.3