mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
632b8020f7
* 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>
13 lines
492 B
TypeScript
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,
|
|
};
|