Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Button from '@code-dot-org/component-library/button';
import FontAwesomeV6Icon from '@code-dot-org/component-library/fontAwesomeV6Icon';
import {WithTooltip} from '@code-dot-org/component-library/tooltip';
import {BodyThreeText} from '@code-dot-org/component-library/typography';
import {getFolderPath} from '@codebridge/utils';
import classNames from 'classnames';
import React from 'react';
Expand Down Expand Up @@ -90,7 +91,9 @@ const AiTutorVersionFileChip: React.FC<AiTutorVersionFileChipProps> = ({
iconStyle="solid"
/>
</div>
<span className={moduleStyles.fileName}>{file.name}</span>
<BodyThreeText className={moduleStyles.fileName} noMargin>
{file.name}
</BodyThreeText>
{!isInReview && isAccepted && (
<FontAwesomeV6Icon
iconName="check"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
@use '@code-dot-org/component-library-styles/typography.module.scss' as
typography;
@use '@cdo/apps/lab2/views/components/layout/variables.scss' as variables;

.chip {
height: 30px;
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.25rem 0.25rem 0.25rem calc(32px + 8px);
border-radius: var(--border-radius-br-s, 4px);
border-radius: 0.25rem;
background-color: var(--background-neutral-primary);
border: 1px solid var(--borders-neutral-strong);
border: variables.$strong-border;
position: relative;
box-sizing: border-box;

Expand All @@ -26,7 +26,7 @@
left: -1px;
bottom: -1px;
width: 32px;
border-radius: var(--border-radius-br-s, 4px) 0 0 var(--border-radius-br-s, 4px);
border-radius: 0.25rem 0 0 0.25rem;
display: flex;
align-items: center;
justify-content: center;
Expand All @@ -40,14 +40,9 @@
}

.fileName {
@include typography.body-three;
color: var(--text-neutral-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.25rem;
margin: 0;
padding: 0;
}

.previewButtonWrapper {
Expand Down Expand Up @@ -80,4 +75,4 @@
margin-left: auto;
margin-right: 0.25rem;
color: var(--text-error-primary);
}
}