Thanks to visit codestin.com
Credit goes to github.com

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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ const ChatUploadedFile = ({
{getSizeDisplay(fileInfo.size, FileSize.Byte)}
</StyledChatUploadedFileSize>
</StyledChatUploadedFileInfo>
<StyledChatUploadedFileDeleteButton data-testid="stChatInputDeleteBtn">
<StyledChatUploadedFileDeleteButton
data-testid="stChatInputDeleteBtn"
isError={isError}
>
<BaseButton
onClick={handleDeleteClick}
kind={BaseButtonKind.MINIMAL}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,40 +147,45 @@ export const StyledChatUploadedFileSize = styled.div(({ theme }) => ({
fontSize: theme.fontSizes.sm,
}))

export const StyledChatUploadedFileDeleteButton = styled.small(
({ theme }) => ({
position: "absolute",
top: theme.spacing.twoXS,
right: theme.spacing.twoXS,
display: "flex",
alignItems: "center",
justifyContent: "center",
lineHeight: 0,
// Circular background for the X button
"& button": {
export interface StyledChatUploadedFileDeleteButtonProps {
isError?: boolean
}

export const StyledChatUploadedFileDeleteButton =
styled.small<StyledChatUploadedFileDeleteButtonProps>(
({ theme, isError }) => ({
position: "absolute",
top: theme.spacing.twoXS,
right: theme.spacing.twoXS,
display: "flex",
alignItems: "center",
justifyContent: "center",
width: "fit-content",
height: "fit-content",
minHeight: "unset",
minWidth: "unset",
maxHeight: "unset",
maxWidth: "unset",
borderRadius: "50%",
backgroundColor: "transparent",
color: theme.colors.fadedText20,
padding: 0,
overflow: "hidden",
boxSizing: "border-box",
lineHeight: 0,
"&:hover": {
// Circular background for the X button
"& button": {
display: "flex",
alignItems: "center",
justifyContent: "center",
width: "fit-content",
height: "fit-content",
minHeight: "unset",
minWidth: "unset",
maxHeight: "unset",
maxWidth: "unset",
borderRadius: "50%",
backgroundColor: "transparent",
color: theme.colors.fadedText40,
color: isError ? theme.colors.redTextColor : theme.colors.fadedText60,
padding: 0,
overflow: "hidden",
boxSizing: "border-box",
lineHeight: 0,
"&:hover": {
backgroundColor: "transparent",
color: isError ? theme.colors.redColor : theme.colors.bodyText,
},
},
},
})
)
})
)

/* eslint-disable streamlit-custom/no-hardcoded-theme-values */
Copy link

Copilot AI Jan 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definition for rule 'streamlit-custom/no-hardcoded-theme-values' was not found.

Copilot uses AI. Check for mistakes.
// Visually hidden but accessible to screen readers
Expand Down
Loading