aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-15 01:27:26 +0800
committercrupest <crupest@outlook.com>2021-02-15 01:27:26 +0800
commitfeaa3296288e3e4b872f60de002d7f9e2a690bc6 (patch)
tree36d630b6ad3c6dbc238ad1a2b443d02903d70230 /FrontEnd/src
parent7c3ce5214ff89bef6180f42a68b8b237e989452b (diff)
downloadtimeline-feaa3296288e3e4b872f60de002d7f9e2a690bc6.tar.gz
timeline-feaa3296288e3e4b872f60de002d7f9e2a690bc6.tar.bz2
timeline-feaa3296288e3e4b872f60de002d7f9e2a690bc6.zip
feat: Use container to set width of timeline page.
Diffstat (limited to 'FrontEnd/src')
-rw-r--r--FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
index 3087c20e..62204ca8 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
@@ -1,6 +1,6 @@
import React from "react";
import { useTranslation } from "react-i18next";
-import { Spinner } from "react-bootstrap";
+import { Container, Spinner } from "react-bootstrap";
import { HttpNetworkError, HttpNotFoundError } from "@/http/common";
import {
@@ -143,8 +143,8 @@ const TimelinePageTemplate: React.FC<TimelinePageTemplateProps> = (props) => {
toggleCollapse={toggleCardCollapse}
onReload={onReload}
/>
- <div
- className="timeline-container"
+ <Container
+ className="px-0"
style={{
minHeight: `calc(100vh - ${56 + bottomSpaceHeight}px)`,
}}
@@ -157,7 +157,7 @@ const TimelinePageTemplate: React.FC<TimelinePageTemplateProps> = (props) => {
additionalPosts={newPosts}
onLoad={scrollToBottom}
/>
- </div>
+ </Container>
{timeline.postable ? (
<>
<div