insomnia/packages/insomnia-app/app/ui/components/dropdowns/dropdown-placement-hacks.ts
James Gatz 632b8020f7
Display a checkmark for the selected sort option in the SpaceSortDropdown (#3896)
* Display a checkmark for the selected sort option in the SpaceSortDropdown

* Update packages/insomnia-app/app/ui/components/dropdowns/space-sort-dropdown.tsx

Co-authored-by: Opender Singh <opender94@gmail.com>

* Move the placement hacks for the dropdown icon and tooltip into a separate file

* Fix lint errors

Co-authored-by: Opender Singh <opender94@gmail.com>
2021-08-11 14:23:29 +03:00

13 lines
492 B
TypeScript

// @TODO Remove these once we update the dropdown component.
export const svgPlacementHack = {
// This is a bit of a hack/workaround to avoid some larger changes that we'd need to do with dropdown item icons and tooltips.
// Without this, the icon is too high with respect to the text because of Tooltip introducing some changes to the placement of the icon.
marginTop: 1,
};
export const tooltipIconPlacementHack = {
// see above comment for `svgPlacementHack`.
marginTop: 3,
};