Skip to content

Commit

Permalink
Merge pull request #1032 from eleven-labs/fix/feedback-tutorial-stepper
Browse files Browse the repository at this point in the history
fix: feedbacks css tutorial stepper
  • Loading branch information
fpasquet committed Nov 6, 2023
2 parents 822aa69 + df61bfe commit a19e5c3
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
14 changes: 10 additions & 4 deletions src/components/ArticleMetadata/ArticleMetadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,16 @@ export const ArticleMetadata: React.FC<ArticleMetadataProps> = ({
<Skeleton key={displayedField} isLoading={isLoading} display="inline-block" style={{ width: 100 }}>
{authors &&
authors.map((author, authorIndex) => (
<Text key={author.username} as="span">
{author.name}
{authorIndex !== authors.length - 1 ? ' & ' : ''}
</Text>
<>
<Text key={author.username} as="span">
{author.name}
</Text>
{authorIndex !== authors.length - 1 && (
<Text key={author.username} as="span">
&nbsp;&&nbsp;
</Text>
)}
</>
))}
</Skeleton>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/PostPreview/PostPreviewContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const PostPreviewContent: React.FC<PostPreviewContentProps> = ({
<Skeleton isLoading={isLoading}>
<Heading as="h2" color="amaranth" size="s">
{contentType === ContentTypeEnum.TUTORIAL ? (
<Flex gap="xxs">
<Flex gap="xxs" alignItems="center">
<TutoTag />
{titleBlock}
</Flex>
Expand Down
4 changes: 2 additions & 2 deletions src/components/TutoTag/TutoTag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
padding: var(--spacing-xxs-3) var(--spacing-xs) var(--spacing-xxs-3) var(--spacing-xxs);
border-radius: 24px;

&__text {;
font-size: 10px;
&__text {
font-size: 12px;
}
}
3 changes: 2 additions & 1 deletion src/components/TutorialSteps/TutorialSteps.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}

&:not(:last-child) {
padding-bottom: var(--spacing-m);
padding-bottom: var(--spacing-l);
}

&:last-child {
Expand All @@ -50,6 +50,7 @@
}
}
&--active ~ #{$this}__step {
--tutorial-steps-color: var(--color-dark-grey);
#{$this}__number {
--tutorial-steps-number-background: var(--color-white);
--tutorial-steps-color-number-color: var(--color-azure);
Expand Down
4 changes: 2 additions & 2 deletions src/components/TutorialSteps/TutorialSteps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ export const TutorialSteps: React.FC<TutorialStepsProps> = ({ stepActive, steps,
alignItems="center"
gap={{ xs: 'xxs-2', md: '0' }}
>
<Box>
<Text as="div" size="xs">
<Flex alignItems="center" justifyContent="center" className="tutorial-steps__number">
{index + 1}
</Flex>
</Box>
</Text>
<Text key={name} size="xs" ml="xs" className="tutorial-steps__text">
{label}
</Text>
Expand Down

0 comments on commit a19e5c3

Please sign in to comment.