Skip to content

Commit

Permalink
addressing review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitakinger committed Nov 27, 2024
1 parent 45fed29 commit 0896ffb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 2 additions & 4 deletions app/client/src/IDE/Components/FileTab/FileTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ export const FileTab = ({
onDoubleClick,
title,
}: FileTabProps) => {
const identifier = `t--ide-tab-${sanitizeString(title)}`;

return (
<Styled.Tab
className={clsx("editor-tab", isActive && "active", identifier)}
data-testid={identifier}
className={clsx("editor-tab", isActive && "active")}
data-testid={`t--ide-tab-${sanitizeString(title)}`}
onClick={onClick}
onDoubleClick={onDoubleClick}
>
Expand Down
6 changes: 1 addition & 5 deletions app/client/src/IDE/Components/FileTab/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const Tab = styled.div`
border-left: 1px solid transparent;
border-right: 1px solid transparent;
border-top: 2px solid transparent;
flex-shrink: 0;
&.active {
background: var(--ads-v2-colors-control-field-default-bg);
Expand All @@ -38,11 +39,6 @@ export const Tab = styled.div`
&.active > .tab-close {
visibility: visible;
}
&.t--ide-tab-new_query,
&.t--ide-tab-new_js {
flex-shrink: 0;
}
`;

export const IconContainer = styled.div`
Expand Down

0 comments on commit 0896ffb

Please sign in to comment.