Fix editor feels and look

This commit is contained in:
Adrian Wozniak 2020-04-24 17:17:47 +02:00
parent 9fda6def09
commit c84a6ade8e

View File

@ -157,16 +157,6 @@ pub fn render(values: StyledEditor) -> Node<Msg> {
div![ div![
attrs![At::Class => "styledEditor"], attrs![At::Class => "styledEditor"],
label![
if mode == Mode::Editor {
class!["navbar editorTab activeTab"]
} else {
class!["navbar editorTab"]
},
attrs![At::For => editor_id.as_str()],
"Editor",
on_editor_clicked
],
label![ label![
if mode == Mode::View { if mode == Mode::View {
class!["navbar viewTab activeTab"] class!["navbar viewTab activeTab"]
@ -177,6 +167,16 @@ pub fn render(values: StyledEditor) -> Node<Msg> {
"View", "View",
on_view_clicked on_view_clicked
], ],
label![
if mode == Mode::Editor {
class!["navbar editorTab activeTab"]
} else {
class!["navbar editorTab"]
},
attrs![At::For => editor_id.as_str()],
"Editor",
on_editor_clicked
],
editor_radio_node, editor_radio_node,
text_area, text_area,
view_radio_node, view_radio_node,