diff options
author | crupest <crupest@outlook.com> | 2023-08-26 16:28:39 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-08-26 16:28:39 +0800 |
commit | 1f90dd29a2e1a11cf16857513f14bce3df68c1e1 (patch) | |
tree | 4f044ae6ebf37014f33c37c5fee8bf9d37b4f3c7 /FrontEnd/src/pages/timeline | |
parent | 5284f38c002e5bf88e308e208456d41d4126b30e (diff) | |
download | timeline-1f90dd29a2e1a11cf16857513f14bce3df68c1e1.tar.gz timeline-1f90dd29a2e1a11cf16857513f14bce3df68c1e1.tar.bz2 timeline-1f90dd29a2e1a11cf16857513f14bce3df68c1e1.zip |
...
Diffstat (limited to 'FrontEnd/src/pages/timeline')
-rw-r--r-- | FrontEnd/src/pages/timeline/CollapseButton.tsx | 18 | ||||
-rw-r--r-- | FrontEnd/src/pages/timeline/TimelineCard.tsx | 1 | ||||
-rw-r--r-- | FrontEnd/src/pages/timeline/TimelinePostCreateView.css | 4 | ||||
-rw-r--r-- | FrontEnd/src/pages/timeline/TimelinePostView.tsx | 1 |
4 files changed, 15 insertions, 9 deletions
diff --git a/FrontEnd/src/pages/timeline/CollapseButton.tsx b/FrontEnd/src/pages/timeline/CollapseButton.tsx index 8270e160..14fc6bee 100644 --- a/FrontEnd/src/pages/timeline/CollapseButton.tsx +++ b/FrontEnd/src/pages/timeline/CollapseButton.tsx @@ -1,21 +1,25 @@ -import * as React from "react"; +import { CSSProperties } from "react"; import IconButton from "@/views/common/button/IconButton"; -const CollapseButton: React.FC<{ +export default function CollapseButton({ + collapse, + onClick, + className, + style, +}: { collapse: boolean; onClick: () => void; className?: string; - style?: React.CSSProperties; -}> = ({ collapse, onClick, className, style }) => { + style?: CSSProperties; +}) { return ( <IconButton + color="primary" icon={collapse ? "arrows-angle-expand" : "arrows-angle-contract"} onClick={onClick} className={className} style={style} /> ); -}; - -export default CollapseButton; +} diff --git a/FrontEnd/src/pages/timeline/TimelineCard.tsx b/FrontEnd/src/pages/timeline/TimelineCard.tsx index 8557e5dd..ed34b4ba 100644 --- a/FrontEnd/src/pages/timeline/TimelineCard.tsx +++ b/FrontEnd/src/pages/timeline/TimelineCard.tsx @@ -112,6 +112,7 @@ export default function TimelineCard(props: TimelinePageCardProps) { containerClassName="d-inline" > <IconButton + color="primary" className="timeline-card-button" icon="three-dots-vertical" /> diff --git a/FrontEnd/src/pages/timeline/TimelinePostCreateView.css b/FrontEnd/src/pages/timeline/TimelinePostCreateView.css index 2a433860..5986e566 100644 --- a/FrontEnd/src/pages/timeline/TimelinePostCreateView.css +++ b/FrontEnd/src/pages/timeline/TimelinePostCreateView.css @@ -24,11 +24,11 @@ }
.timeline-post-create-edit-text:hover {
- border-color: var(--cru-button-secondary-normal-color)
+ border-color: var(--cru-clickable-secondary-normal-color)
}
.timeline-post-create-edit-text:focus {
- border-color: var(--cru-button-secondary-normal-color)
+ border-color: var(--cru-clickable-secondary-normal-color)
}
.timeline-post-create-image {
diff --git a/FrontEnd/src/pages/timeline/TimelinePostView.tsx b/FrontEnd/src/pages/timeline/TimelinePostView.tsx index 07f2e0f0..afae5033 100644 --- a/FrontEnd/src/pages/timeline/TimelinePostView.tsx +++ b/FrontEnd/src/pages/timeline/TimelinePostView.tsx @@ -47,6 +47,7 @@ export default function TimelinePostView(props: TimelinePostViewProps) { <TimelinePostCard className="cru-primary"> {post.editable && ( <IconButton + color="primary" icon="chevron-down" className="timeline-post-edit-button" onClick={(e) => { |