feat(chat): frame attachment thumbnails with a subtle hairline
Sent images and composer thumbnails share ChatAttachmentFrame: rounded corners plus a faint outline in the host's outline role, so a dark screenshot no longer melts into a dark page. Adds a web probe that renders the streaming activity line at several text sizes.
This commit is contained in:
@@ -90,6 +90,11 @@ void main() {
|
||||
find.byKey(const Key('chat-attachment-thumbnail-image')),
|
||||
findsOneWidget,
|
||||
);
|
||||
// A hairline frames the image so it reads against the page.
|
||||
final frame = tester.widget<Container>(
|
||||
find.byKey(const Key('chat-attachment-frame')),
|
||||
);
|
||||
expect((frame.foregroundDecoration as BoxDecoration).border, isNotNull);
|
||||
// No paperclip row and no base64 shown as a file name.
|
||||
expect(find.byIcon(Icons.attach_file), findsNothing);
|
||||
expect(find.byIcon(CupertinoIcons.paperclip), findsNothing);
|
||||
|
||||
Reference in New Issue
Block a user