mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Make profile modal nav tabs better responsive (#10946)
* Make profile modal nav tabs better responsive Remove offset & specific width and use flexbox centering Fixes #10944 * Change profile modal nav height to min-height So that height changes accordingly if nav elements wrap to second row
This commit is contained in:
committed by
Matteo Pagliazzi
parent
d10f1304de
commit
8904c58510
@@ -33,7 +33,7 @@ div
|
||||
.col-12
|
||||
member-details(:member="user")
|
||||
.row
|
||||
.col-12.col-md-6.offset-md-3.text-center.nav
|
||||
.col-12.text-center.nav
|
||||
.nav-item(@click='selectPage("profile")', :class="{active: selectedPage === 'profile'}") {{ $t('profile') }}
|
||||
.nav-item(@click='selectPage("stats")', :class="{active: selectedPage === 'stats'}") {{ $t('stats') }}
|
||||
.nav-item(@click='selectPage("achievements")', :class="{active: selectedPage === 'achievements'}") {{ $t('achievements') }}
|
||||
@@ -228,12 +228,13 @@ div
|
||||
|
||||
.nav {
|
||||
font-weight: bold;
|
||||
height: 40px;
|
||||
min-height: 40px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
display: inline-block;
|
||||
margin: 0 auto;
|
||||
margin: 0 1.2em;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user