diff options
author | crupest <crupest@outlook.com> | 2020-06-10 15:50:15 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-10 15:50:15 +0800 |
commit | 6aa26882b6ab759e6240457ec19c065296964d9f (patch) | |
tree | d2fc3cd8128f74e058b91a99b8c291b9a360aa68 | |
parent | fbbe8660d7d4fb9e5363e80b959302b41a013d1b (diff) | |
download | timeline-6aa26882b6ab759e6240457ec19c065296964d9f.tar.gz timeline-6aa26882b6ab759e6240457ec19c065296964d9f.tar.bz2 timeline-6aa26882b6ab759e6240457ec19c065296964d9f.zip |
feat(front): Make post editer beatiful.
-rw-r--r-- | Timeline/ClientApp/src/timeline/TimelinePostEdit.tsx | 4 | ||||
-rw-r--r-- | Timeline/ClientApp/src/timeline/timeline.sass | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/Timeline/ClientApp/src/timeline/TimelinePostEdit.tsx b/Timeline/ClientApp/src/timeline/TimelinePostEdit.tsx index 16ce445a..d266bd8d 100644 --- a/Timeline/ClientApp/src/timeline/TimelinePostEdit.tsx +++ b/Timeline/ClientApp/src/timeline/TimelinePostEdit.tsx @@ -178,10 +178,10 @@ const TimelinePostEdit: React.FC<TimelinePostEditProps> = (props) => { return (
<div ref={containerRef} className="container-fluid fixed-bottom bg-light">
<Row>
- <Col className="px-0">
+ <Col className="px-1 py-1">
{kind === 'text' ? (
<textarea
- className="w-100 h-100"
+ className="w-100 h-100 timeline-post-edit"
value={text}
disabled={state === 'process'}
onChange={(event: React.ChangeEvent<HTMLTextAreaElement>) => {
diff --git a/Timeline/ClientApp/src/timeline/timeline.sass b/Timeline/ClientApp/src/timeline/timeline.sass index dad5251c..c9f88a22 100644 --- a/Timeline/ClientApp/src/timeline/timeline.sass +++ b/Timeline/ClientApp/src/timeline/timeline.sass @@ -116,3 +116,11 @@ $timeline-line-color-current: #36c2e6 .mask
background: change-color($color: white, $alpha: 0.8)
z-index: 100
+
+textarea.timeline-post-edit
+ @extend .border-primary
+ @extend .rounded
+
+ &:focus
+ outline: none
+ box-shadow: 0 0 5px 0 $primary
|