mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
* Use Flexbox for selectList to get the full width of the selectItems within dropdown * Add a width to selectDifficulty to avoid visual regression when switching selectList to Flexbox
This commit is contained in:
@@ -39,6 +39,7 @@
|
|||||||
.difficulty-item {
|
.difficulty-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
div.svg-icon {
|
div.svg-icon {
|
||||||
::v-deep svg {
|
::v-deep svg {
|
||||||
|
|||||||
@@ -58,11 +58,17 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
padding-right: 25px; /* To allow enough room for the down arrow to be displayed */
|
||||||
}
|
}
|
||||||
|
|
||||||
.selectListItem {
|
.selectListItem {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-right: 1.625rem;
|
|
||||||
|
.dropdown-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
&:not(.showIcon) {
|
&:not(.showIcon) {
|
||||||
.svg-icon.check-icon {
|
.svg-icon.check-icon {
|
||||||
@@ -71,10 +77,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.svg-icon.check-icon.color {
|
.svg-icon.check-icon.color {
|
||||||
position: absolute;
|
margin-left: 10px; /* So the flex item (checkmark) will have some spacing from the text */
|
||||||
right: 0.855rem;
|
|
||||||
top: 0.688rem;
|
|
||||||
bottom: 0.688rem;
|
|
||||||
width: 0.77rem;
|
width: 0.77rem;
|
||||||
height: 0.615rem;
|
height: 0.615rem;
|
||||||
color: $purple-300;
|
color: $purple-300;
|
||||||
|
|||||||
Reference in New Issue
Block a user