Skip to content

Commit

Permalink
fix styles issues
Browse files Browse the repository at this point in the history
1. fix double lining of text
2. add container around icons
  • Loading branch information
prachigarg19 committed Feb 2, 2024
1 parent 840da77 commit 18269de
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/temp/VegetationChangeDatabox/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ const Dropdown = ({ labelIcon, labelTitle, isOpen }: Props) => {
option.title === selectedOption.title ? styles.selected : ''
}`}
>
{option.icon} {option.title}
<div className={styles.optionIcon}>{option.icon}</div>
<p>{option.title}</p>
</li>
))}
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
gap: 7px;
align-items: center;
justify-content: center;
white-space: nowrap;
}

}
Expand All @@ -49,13 +50,21 @@
background-color: #fff;
border-radius: 4px;
font-size: 10px;
width: 124px;
width: 134px;
}
.menuItem {
display: flex;
align-items: center;
padding: 6px 7px;
gap: 10px;
white-space: nowrap;
.optionIcon {
height: 14px;
width: 14px;
display: flex;
align-items: center;
justify-content: center;
}
}
.selected {
border-radius: 4px;
Expand Down Expand Up @@ -84,7 +93,7 @@
}
@include xsPhoneView {
.menuButton {
width: 121.5px;
width: 126.5px;
height: 21px;
font-size: 8px;
padding: 5px 8px;
Expand All @@ -97,5 +106,9 @@
}
.itemsContainer {
bottom: 85px;
width:118.5px;
}
.menuItem{
gap:4px;
}
}

0 comments on commit 18269de

Please sign in to comment.