File tree 5 files changed +30
-4
lines changed
frontend/src/packages/editor/components/buttons
5 files changed +30
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const EditorQuoteButton: FC = () => {
10
10
size = { 30 }
11
11
onMouseDown = { ( event ) => {
12
12
event . preventDefault ( ) ;
13
- toggleMark ( editor , ' quote' ) ;
13
+ toggleMark ( editor , " quote" ) ;
14
14
} }
15
15
/>
16
16
) ;
Original file line number Diff line number Diff line change @@ -8,6 +8,22 @@ const Text = styled.span<TextStyle>`
8
8
text-decoration-line: ${ ( props ) => ( props . underline ? "underline" : "none" ) } ;
9
9
text-align: ${ ( props ) => props . align } ;
10
10
font-size: ${ ( props ) => `${ props . textSize } px` ?? "16px" } ;
11
+ word-wrap: break-word;
12
+ font-family: ${ ( props ) => props . code ? "monospace" : "inherit" } ;
13
+ background-color: ${ ( props ) => props . code ? "#eee" : "#fff" } ;
14
+ color: ${ ( props ) => ( props . quote ? '#9e9e9e' : 'black' ) } ;
15
+ border-left: ${ ( props ) => ( props . quote ? "3px solid #9e9e9e" : "auto" ) } ;
16
+ margin: ${ ( props ) => ( props . quote ? "0px" : "auto" ) } ;
17
+ padding-left: ${ ( props ) => ( props . quote ? "10px" : "0px" ) } ;
18
+
19
+ min-width: 200px;
20
+ @media ${ device . tablet } {
21
+ min-width: 500px;
22
+ }
23
+
24
+ @media (min-width: 1920px) {
25
+ min-width: 1250px;
26
+ }
11
27
` ;
12
28
13
29
const AlignedText = Text . withComponent ( "div" ) ;
@@ -24,6 +40,14 @@ const ImagePlaceholder = styled.div`
24
40
25
41
const ParagraphContainer = styled . div `
26
42
padding: 10px;
43
+ min-width: 200px;
44
+ @media ${ device . tablet } {
45
+ min-width: 500px;
46
+ }
47
+
48
+ @media (min-width: 1920px) {
49
+ min-width: 1250px;
50
+ }
27
51
` ;
28
52
29
53
const BlogContainer = styled . div `
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ export interface TextStyle {
27
27
bold ?: boolean ;
28
28
italic ?: boolean ;
29
29
underline ?: boolean ;
30
+ code ?: boolean ;
31
+ quote ?: boolean ;
30
32
align ?: "left" | "right" | "center" ;
31
33
textSize : number ;
32
34
}
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ const Footer: React.FC<{}> = () => {
63
63
< Image src = { CSESocLogo } alt = "CSESoc" />
64
64
</ Logo >
65
65
< Details >
66
- < p >
66
+ < div >
67
67
B03 CSE Building K17, UNSW
68
68
< br />
69
69
@@ -87,7 +87,7 @@ const Footer: React.FC<{}> = () => {
87
87
</ ImagesContainer >
88
88
< br /> < br />
89
89
© 2022 — CSESoc UNSW
90
- </ p >
90
+ </ div >
91
91
</ Details >
92
92
</ FooterComponent >
93
93
) ;
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ const BlogPage: NextPage<{ data: Block[] }> = ({ data }) => {
42
42
43
43
export const getServerSideProps : GetServerSideProps = async ( { params } ) => {
44
44
const data = await fetch (
45
- `/api/filesystem/get/published?DocumentID=${
45
+ `http://backend:8080 /api/filesystem/get/published?DocumentID=${
46
46
params && params . bid
47
47
} `,
48
48
{
You can’t perform that action at this time.
0 commit comments