Minor css alignment fix

This commit is contained in:
Shaurya Sharma 2024-10-28 14:31:46 +05:30
parent 8ce5cfc01b
commit 43ce1e8fd4
3 changed files with 4 additions and 1 deletions

View file

@ -440,6 +440,7 @@ export const DropdownV2 = ({
auto={labelAutoWidth}
isMandatory={isMandatory}
_width={_width}
top={'1px'}
/>
<div className="w-100 px-0 h-100" ref={ref}>
<Select

View file

@ -438,6 +438,7 @@ export const MultiselectV2 = ({
auto={auto}
isMandatory={isMandatory}
_width={_width}
top={'1px'}
/>
<div
className="w-100 px-0 h-100"

View file

@ -1,5 +1,5 @@
import React from 'react';
function Label({ label, width, labelRef, color, defaultAlignment, direction, auto, isMandatory, _width }) {
function Label({ label, width, labelRef, color, defaultAlignment, direction, auto, isMandatory, _width, top }) {
return (
<>
{label && (width > 0 || auto) && (
@ -31,6 +31,7 @@ function Label({ label, width, labelRef, color, defaultAlignment, direction, aut
? '12px'
: '',
paddingLeft: label?.length > 0 && defaultAlignment === 'side' && direction != 'left' ? '12px' : '',
...(top && { top }),
}}
>
{label}