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
ppl-fasilkom-ui
2020
PPL-C
Diskominfo-D'Blood
Mantan Aab-D Blood
Commits
bae28b7c
Commit
bae28b7c
authored
Jun 08, 2020
by
Nabila Febri Viola
Browse files
[REFACTOR] Align navbar button to the right when navbar collapsed
parent
83c08256
Pipeline
#49914
passed with stages
in 2 minutes and 45 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/navbar.css
View file @
bae28b7c
...
...
@@ -21,3 +21,13 @@
#change-profile-nav
{
margin-bottom
:
-0.1rem
;
}
@media
(
max-width
:
573px
)
{
.navbar-button
{
display
:
block
;
padding
:
0
;
margin-top
:
0.5rem
;
margin-bottom
:
0.5rem
;
text-align
:
left
;
}
}
frontend/src/components/navbar.js
View file @
bae28b7c
...
...
@@ -33,7 +33,7 @@ const Navbar = () => {
<
NavLink
to
=
"
/
"
>
Home
<
/NavLink
>
<
NavLink
to
=
"
/jadwal-donor
"
>
Jadwal
Donor
<
/NavLink
>
<
Button
variant
=
"
red-transparent
"
variant
=
"
red-transparent
navbar-button
"
onClick
=
{
user
?
showModalEventDonorSubmission
()
:
showModalLogin
()
}
...
...
@@ -46,7 +46,7 @@ const Navbar = () => {
{
user
?
(
<
Nav
>
<
Button
variant
=
"
red-transparent
"
variant
=
"
red-transparent
navbar-button
"
onClick
=
{
showModalChangeProfile
()}
>
Ubah
Profil
...
...
@@ -57,7 +57,10 @@ const Navbar = () => {
<
/Nav
>
)
:
(
<
Nav
>
<
Button
variant
=
"
red-transparent
"
onClick
=
{
showModalLogin
()}
>
<
Button
variant
=
"
red-transparent navbar-button
"
onClick
=
{
showModalLogin
()}
>
Masuk
<
/Button
>
<
Button
variant
=
"
cream
"
onClick
=
{
showModalRegister
()}
>
...
...
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