aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/timeline-common
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-30 18:36:47 +0800
committercrupest <crupest@outlook.com>2021-06-30 18:36:47 +0800
commit839daa0eac6fdbe84f45e8572e5ab07126b7d67c (patch)
tree08b68e8bfd6da2f8b4f51c4aaefbbd33c747e8d6 /FrontEnd/src/views/timeline-common
parent979ad8556be3576b09e318c9e85ae0138ecf11ec (diff)
downloadtimeline-839daa0eac6fdbe84f45e8572e5ab07126b7d67c.tar.gz
timeline-839daa0eac6fdbe84f45e8572e5ab07126b7d67c.tar.bz2
timeline-839daa0eac6fdbe84f45e8572e5ab07126b7d67c.zip
...
Diffstat (limited to 'FrontEnd/src/views/timeline-common')
-rw-r--r--FrontEnd/src/views/timeline-common/CollapseButton.tsx2
-rw-r--r--FrontEnd/src/views/timeline-common/TimelinePageCardTemplate.tsx18
2 files changed, 10 insertions, 10 deletions
diff --git a/FrontEnd/src/views/timeline-common/CollapseButton.tsx b/FrontEnd/src/views/timeline-common/CollapseButton.tsx
index 12a3b710..31976228 100644
--- a/FrontEnd/src/views/timeline-common/CollapseButton.tsx
+++ b/FrontEnd/src/views/timeline-common/CollapseButton.tsx
@@ -12,7 +12,7 @@ const CollapseButton: React.FC<{
onClick={onClick}
className={classnames(
collapse ? "bi-arrows-angle-expand" : "bi-arrows-angle-contract",
- "text-primary icon-button",
+ "cru-color-primary icon-button",
className
)}
style={style}
diff --git a/FrontEnd/src/views/timeline-common/TimelinePageCardTemplate.tsx b/FrontEnd/src/views/timeline-common/TimelinePageCardTemplate.tsx
index 75f2d400..f57fda2e 100644
--- a/FrontEnd/src/views/timeline-common/TimelinePageCardTemplate.tsx
+++ b/FrontEnd/src/views/timeline-common/TimelinePageCardTemplate.tsx
@@ -54,11 +54,11 @@ const TimelinePageCardTemplate: React.FC<TimelineCardTemplateProps> = ({
<small className="mt-1 d-block">
{t(timelineVisibilityTooltipTranslationMap[timeline.visibility])}
</small>
- <div className="text-end mt-2">
+ <div className="mt-2 cru-text-end">
<i
className={classnames(
timeline.isHighlight ? "bi-star-fill" : "bi-star",
- "icon-button text-yellow me-3"
+ "icon-button cru-color-primary me-3"
)}
onClick={
user?.hasHighlightTimelineAdministrationPermission
@@ -81,7 +81,7 @@ const TimelinePageCardTemplate: React.FC<TimelineCardTemplateProps> = ({
<i
className={classnames(
timeline.isBookmark ? "bi-bookmark-fill" : "bi-bookmark",
- "icon-button text-yellow me-3"
+ "icon-button cru-color-primary me-3"
)}
onClick={() => {
getHttpBookmarkClient()
@@ -98,12 +98,12 @@ const TimelinePageCardTemplate: React.FC<TimelineCardTemplateProps> = ({
/>
) : null}
<i
- className={"icon-button bi-people text-primary me-3"}
+ className={"icon-button bi-people cru-color-primary me-3"}
onClick={() => setDialog("member")}
/>
{manageItems != null ? (
- <PopupMenu items={manageItems}>
- <i className="icon-button bi-three-dots-vertical text-primary" />
+ <PopupMenu items={manageItems} containerClassName="d-inline">
+ <i className="icon-button bi-three-dots-vertical cru-color-primary" />
</PopupMenu>
) : null}
</div>
@@ -113,10 +113,10 @@ const TimelinePageCardTemplate: React.FC<TimelineCardTemplateProps> = ({
return (
<>
<Card
- className={classnames("p-2 clearfix", className)}
+ className={classnames("p-2 cru-clearfix", className)}
style={{ zIndex: collapse ? 1029 : 1031 }}
>
- <div className="float-end d-flex align-items-center">
+ <div className="cru-float-right ms-3 d-flex align-items-center">
<ConnectionStatusBadge status={connectionStatus} className="me-2" />
<CollapseButton collapse={collapse} onClick={toggleCollapse} />
</div>
@@ -129,7 +129,7 @@ const TimelinePageCardTemplate: React.FC<TimelineCardTemplateProps> = ({
{content}
</FullPageDialog>
) : (
- <div style={{ display: collapse ? "none" : "block" }}>{content}</div>
+ <div style={{ display: collapse ? "none" : "inline" }}>{content}</div>
)}
</Card>
{(() => {