diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_archive[chromium-archive].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_archive[chromium-archive].png index ca04fbee8b8..2cab37412ad 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_archive[chromium-archive].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_archive[chromium-archive].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_archive[firefox-archive].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_archive[firefox-archive].png index acf6eee55a7..a1afc9aeca5 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_archive[firefox-archive].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_archive[firefox-archive].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_archive[webkit-archive].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_archive[webkit-archive].png index 104acfaf038..9fc2cd1782c 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_archive[webkit-archive].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_archive[webkit-archive].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_audio[chromium-audio].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_audio[chromium-audio].png index ce46ef5138f..d285c7f4ada 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_audio[chromium-audio].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_audio[chromium-audio].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_audio[firefox-audio].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_audio[firefox-audio].png index 8edf3ed412a..2037bdcacaf 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_audio[firefox-audio].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_audio[firefox-audio].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_audio[webkit-audio].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_audio[webkit-audio].png index 852697d8073..771264b2ec1 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_audio[webkit-audio].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_audio[webkit-audio].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_code[chromium-code].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_code[chromium-code].png index 27ab3c9000f..45da8c27937 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_code[chromium-code].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_code[chromium-code].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_code[firefox-code].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_code[firefox-code].png index 61645e82529..0dc80c9ce07 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_code[firefox-code].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_code[firefox-code].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_code[webkit-code].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_code[webkit-code].png index 58ddc04d484..ccaf77c0ec1 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_code[webkit-code].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_code[webkit-code].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_pdf[chromium-pdf].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_pdf[chromium-pdf].png index e9f74292e7a..f3bc357a6b7 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_pdf[chromium-pdf].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_pdf[chromium-pdf].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_pdf[firefox-pdf].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_pdf[firefox-pdf].png index 05437a3062b..9fb8624a45b 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_pdf[firefox-pdf].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_pdf[firefox-pdf].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_pdf[webkit-pdf].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_pdf[webkit-pdf].png index 9bb24112879..ff46f9a23ab 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_pdf[webkit-pdf].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_pdf[webkit-pdf].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_spreadsheet[chromium-spreadsheet].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_spreadsheet[chromium-spreadsheet].png index de222e7d1dc..998cb9c6f72 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_spreadsheet[chromium-spreadsheet].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_spreadsheet[chromium-spreadsheet].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_spreadsheet[firefox-spreadsheet].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_spreadsheet[firefox-spreadsheet].png index 43efc9a79d0..36d03fe25a9 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_spreadsheet[firefox-spreadsheet].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_spreadsheet[firefox-spreadsheet].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_spreadsheet[webkit-spreadsheet].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_spreadsheet[webkit-spreadsheet].png index e8f6c884b55..50ce55a647d 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_spreadsheet[webkit-spreadsheet].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_spreadsheet[webkit-spreadsheet].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_text[chromium-text].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_text[chromium-text].png index 0e17afb62ef..35a1efbdac8 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_text[chromium-text].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_text[chromium-text].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_text[firefox-text].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_text[firefox-text].png index be66b654a65..12979f4a2b9 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_text[firefox-text].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_text[firefox-text].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_text[webkit-text].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_text[webkit-text].png index 5510ae35783..8e940835595 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_text[webkit-text].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_text[webkit-text].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[dark_theme-chromium].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[dark_theme-chromium].png index 6b1d37a4c84..24acc62041a 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[dark_theme-chromium].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[dark_theme-chromium].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[dark_theme-firefox].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[dark_theme-firefox].png index 1564be19784..b21507cc9bc 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[dark_theme-firefox].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[dark_theme-firefox].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[dark_theme-webkit].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[dark_theme-webkit].png index b5be5b9ce72..65c32a1c268 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[dark_theme-webkit].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[dark_theme-webkit].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[light_theme-chromium].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[light_theme-chromium].png index 6ab81235b23..0952288f34f 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[light_theme-chromium].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[light_theme-chromium].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[light_theme-firefox].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[light_theme-firefox].png index a68520b08c1..245387000af 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[light_theme-firefox].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[light_theme-firefox].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[light_theme-webkit].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[light_theme-webkit].png index 852f115d462..4334fb4fd1d 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[light_theme-webkit].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_themed[light_theme-webkit].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_truncated[chromium-truncated].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_truncated[chromium-truncated].png index 7eaee489abd..c42b5f8c60c 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_truncated[chromium-truncated].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_truncated[chromium-truncated].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_truncated[firefox-truncated].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_truncated[firefox-truncated].png index 1e7ff98c551..f7885b6a1cb 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_truncated[firefox-truncated].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_truncated[firefox-truncated].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_truncated[webkit-truncated].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_truncated[webkit-truncated].png index 2fc474909a6..0abbb54712b 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_truncated[webkit-truncated].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_truncated[webkit-truncated].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_unknown[chromium-unknown].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_unknown[chromium-unknown].png index 8c866b8eaaa..e82d972253b 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_unknown[chromium-unknown].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_unknown[chromium-unknown].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_unknown[firefox-unknown].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_unknown[firefox-unknown].png index a479c7757f7..001908adfb5 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_unknown[firefox-unknown].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_unknown[firefox-unknown].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_unknown[webkit-unknown].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_unknown[webkit-unknown].png index 85fd7f161fe..06b0e87a92f 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_unknown[webkit-unknown].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_unknown[webkit-unknown].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_video[chromium-video].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_video[chromium-video].png index d87da1b3f81..65bbad2117a 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_video[chromium-video].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_video[chromium-video].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_video[firefox-video].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_video[firefox-video].png index f3f03850730..a0cc72dd6ef 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_video[firefox-video].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_video[firefox-video].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_video[webkit-video].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_video[webkit-video].png index cd5db6043cc..d570446995e 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_video[webkit-video].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_chip_video[webkit-video].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[dark_theme-chromium].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[dark_theme-chromium].png index 7b0f45a118a..80b73a51dde 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[dark_theme-chromium].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[dark_theme-chromium].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[dark_theme-firefox].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[dark_theme-firefox].png index 032a1bc61ec..03655f8d862 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[dark_theme-firefox].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[dark_theme-firefox].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[dark_theme-webkit].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[dark_theme-webkit].png index 8d66c558469..a3baf8680b8 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[dark_theme-webkit].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[dark_theme-webkit].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[light_theme-chromium].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[light_theme-chromium].png index 3540fde07ce..b7570017ee2 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[light_theme-chromium].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[light_theme-chromium].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[light_theme-firefox].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[light_theme-firefox].png index 9cd3d36d286..d1dfddb78ef 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[light_theme-firefox].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[light_theme-firefox].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[light_theme-webkit].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[light_theme-webkit].png index 6eac1594881..fc460aed295 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[light_theme-webkit].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-file_uploaded_error[light_theme-webkit].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-multiple_files_uploaded[chromium].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-multiple_files_uploaded[chromium].png index 348a4e2420f..9c77f06dc72 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-multiple_files_uploaded[chromium].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-multiple_files_uploaded[chromium].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-multiple_files_uploaded[firefox].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-multiple_files_uploaded[firefox].png index 6f0b82a1747..7967b00452c 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-multiple_files_uploaded[firefox].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-multiple_files_uploaded[firefox].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-multiple_files_uploaded[webkit].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-multiple_files_uploaded[webkit].png index 650c1ca0607..c7bb33635ff 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-multiple_files_uploaded[webkit].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-multiple_files_uploaded[webkit].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[dark_theme-chromium].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[dark_theme-chromium].png index 2597c5490c9..eae89ae547b 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[dark_theme-chromium].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[dark_theme-chromium].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[dark_theme-firefox].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[dark_theme-firefox].png index e6dca2ceedd..43d03ea9626 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[dark_theme-firefox].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[dark_theme-firefox].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[dark_theme-webkit].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[dark_theme-webkit].png index 793ad559cf1..0ae3dfd1e45 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[dark_theme-webkit].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[dark_theme-webkit].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[light_theme-chromium].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[light_theme-chromium].png index e541f69835a..f8d6e385483 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[light_theme-chromium].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[light_theme-chromium].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[light_theme-firefox].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[light_theme-firefox].png index 3dcb2d194f5..939e95dbbc0 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[light_theme-firefox].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[light_theme-firefox].png differ diff --git a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[light_theme-webkit].png b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[light_theme-webkit].png index de3beea71b3..f697f4697c8 100644 Binary files a/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[light_theme-webkit].png and b/e2e_playwright/__snapshots__/linux/st_chat_input_test/st_chat_input-single_file_uploaded[light_theme-webkit].png differ diff --git a/frontend/lib/src/components/widgets/ChatInput/fileUpload/ChatUploadedFile.tsx b/frontend/lib/src/components/widgets/ChatInput/fileUpload/ChatUploadedFile.tsx index 1894a9c14b3..b8131111f89 100644 --- a/frontend/lib/src/components/widgets/ChatInput/fileUpload/ChatUploadedFile.tsx +++ b/frontend/lib/src/components/widgets/ChatInput/fileUpload/ChatUploadedFile.tsx @@ -165,7 +165,10 @@ const ChatUploadedFile = ({ {getSizeDisplay(fileInfo.size, FileSize.Byte)} - + ({ 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( + ({ 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 */ // Visually hidden but accessible to screen readers