Skip to content

Commit

Permalink
feat(FOROME-902): remove bold font and add margin on right on empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
QSdmitrioul committed Apr 25, 2022
1 parent 015bd9d commit 53df0f2
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/components/variants-count.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export const VariantsCount: FC<IVariantsCountProps> = ({
<div className="text-white flex-grow flex justify-end mr-6 items-center">
{showVariants && (
<span
className="text-12 leading-14px text-white ml-auto font-bold"
className={cn('text-12 leading-14px text-white ml-auto', {
'ml-2': showDnaVariants || showTranscripts || children,
})}
data-testid={MainTableDataCy.numVariants}
>
{t('filter.variants', {
Expand All @@ -39,10 +41,10 @@ export const VariantsCount: FC<IVariantsCountProps> = ({

{showTranscripts && (
<span
className={cn(
'text-12 leading-14px text-white border-blue-lighter font-bold',
{ 'border-l-2 ml-2 pl-2': showVariants, 'mr-3': showDnaVariants },
)}
className={cn('text-12 leading-14px text-white border-blue-lighter', {
'border-l-2 pl-2': showVariants,
'mr-3': showDnaVariants,
})}
>
{t('filter.transcripts', {
all: formatNumber(transcriptsCounts),
Expand All @@ -56,9 +58,9 @@ export const VariantsCount: FC<IVariantsCountProps> = ({

{showDnaVariants && (
<span
className={cn('text-12 leading-14px text-grey-blue font-bold', {
className={cn('text-12 leading-14px text-grey-blue', {
'ml-3': showTranscripts || showDnaVariants,
'mr-6': !!children,
'mr-6': children,
})}
>
{t('filter.transcribedVariants', {
Expand Down

0 comments on commit 53df0f2

Please sign in to comment.