aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-15 17:16:36 +0800
committercrupest <crupest@outlook.com>2021-06-15 17:16:36 +0800
commita8bc59ae259456b7663af5106b3756b85a5e190b (patch)
tree7f0af68150f118dfec9317e74cbb25583ec05f9f /FrontEnd/src
parent0be1f595578153765d081cdb4478140da9cb8fc9 (diff)
downloadtimeline-a8bc59ae259456b7663af5106b3756b85a5e190b.tar.gz
timeline-a8bc59ae259456b7663af5106b3756b85a5e190b.tar.bz2
timeline-a8bc59ae259456b7663af5106b3756b85a5e190b.zip
...
Diffstat (limited to 'FrontEnd/src')
-rw-r--r--FrontEnd/src/views/center/index.css5
-rw-r--r--FrontEnd/src/views/timeline-common/TimelinePostView.tsx3
2 files changed, 5 insertions, 3 deletions
diff --git a/FrontEnd/src/views/center/index.css b/FrontEnd/src/views/center/index.css
index 516aba52..f5bbc63b 100644
--- a/FrontEnd/src/views/center/index.css
+++ b/FrontEnd/src/views/center/index.css
@@ -2,12 +2,14 @@
min-height: 200px;
height: 100%;
position: relative;
+ padding: 1em 0;
}
.timeline-board-header {
display: flex;
align-items: center;
justify-content: space-between;
+ padding: 0 1em;
}
.timeline-board-item {
@@ -16,11 +18,14 @@
transition: background 0.3s;
display: flex;
align-items: center;
+ padding: 0 1em;
}
+
.timeline-board-item .icon {
height: 1.3em;
color: black;
}
+
.timeline-board-item:hover {
background: #dee2e6;
}
diff --git a/FrontEnd/src/views/timeline-common/TimelinePostView.tsx b/FrontEnd/src/views/timeline-common/TimelinePostView.tsx
index e9dd3443..ea40f80a 100644
--- a/FrontEnd/src/views/timeline-common/TimelinePostView.tsx
+++ b/FrontEnd/src/views/timeline-common/TimelinePostView.tsx
@@ -1,7 +1,6 @@
import React from "react";
import classnames from "classnames";
import { Link } from "react-router-dom";
-import { useTranslation } from "react-i18next";
import { getHttpTimelineClient, HttpTimelinePostInfo } from "@/http/timeline";
@@ -29,8 +28,6 @@ const TimelinePostView: React.FC<TimelinePostViewProps> = (props) => {
const { post, className, style, cardStyle, onChanged, onDeleted } = props;
const current = props.current === true;
- const { t } = useTranslation();
-
const [operationMaskVisible, setOperationMaskVisible] =
React.useState<boolean>(false);
const [dialog, setDialog] = React.useState<