Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mohammad Dwikurnia Apriadi
Diskuy-Frontend
Commits
ef43d526
Commit
ef43d526
authored
Feb 25, 2021
by
Jonathan Chandra
Browse files
fix styling for error message
parent
decda333
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/components/thread/CreateThread.jsx
View file @
ef43d526
...
...
@@ -54,7 +54,7 @@ export default function ListThreads(props) {
const
{
data
}
=
thisThread
?.
data
;
redirect
(
`/topic/
${
data
?.
topic_name
}
/
${
data
?.
id
}
/page/1`
);
}
catch
(
error
)
{
setMessage
(
'
Thread title already exist in the selected topic
'
);
setMessage
(
"
Thread
's
title already exist in the selected topic
"
);
}
resetBody
();
resetTitle
();
...
...
@@ -77,7 +77,7 @@ export default function ListThreads(props) {
{
message
&&
(
<
div
>
<
div
className
=
"alert alert-danger"
role
=
"alert"
>
{
message
}
<
p
>
{
message
}
</
p
>
</
div
>
</
div
>
)
}
...
...
src/components/thread/EditThread.jsx
View file @
ef43d526
...
...
@@ -81,7 +81,7 @@ export default function EditThread(props) {
const
{
data
}
=
thisThread
?.
data
;
redirect
(
`/topic/
${
data
?.
topic_name
}
/
${
data
?.
id
}
/page/1`
);
}
catch
(
error
)
{
setMessage
(
'
Thread title already exist in the selected topic
'
);
setMessage
(
"
Thread
's
title already exist in the selected topic
"
);
}
resetBody
();
resetTitle
();
...
...
@@ -104,7 +104,7 @@ export default function EditThread(props) {
{
message
&&
(
<
div
>
<
div
className
=
"alert alert-danger"
role
=
"alert"
>
{
message
}
<
p
>
{
message
}
</
p
>
</
div
>
</
div
>
)
}
...
...
src/styles/thread/Form.css
View file @
ef43d526
...
...
@@ -116,6 +116,11 @@ textarea:focus, input:focus, select:focus{
outline
:
none
;
}
.alert
p
{
font-family
:
"DM Sans"
;
margin
:
0px
;
}
@media
only
screen
and
(
min-device-width
:
320px
)
and
(
max-device-width
:
540px
)
{
.formContainer
{
margin
:
18px
36px
;
...
...
@@ -177,6 +182,10 @@ textarea:focus, input:focus, select:focus{
display
:
flex
;
justify-content
:
center
;
}
.alert
p
{
text-align
:
center
;
}
}
@media
only
screen
and
(
max-device-width
:
320px
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment