-
Notifications
You must be signed in to change notification settings - Fork 599
AI-Aided: Fix image borders adding noise to inline icons #8100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Remove global img border rule that affected all images - Apply borders selectively to content images in document sections - Remove borders from small inline icons and images in tables - Preserve borders for large diagrams while reducing noise from icons Fixes issue where check mark icons in tables and small inline icons were getting unnecessary borders that detracted from scannability. Co-authored-by: Carrie Warner (Mattermost) <cwarnermm@users.noreply.github.com>
Newest code from mattermost has been published to preview environment for Git SHA d607c59 |
@claude - Your change removed the image border from larger images that improve readability. |
Claude finished @cwarnermm's task —— View job ✅ Fixed image border CSS selectorsI've fixed the issue where borders were being removed from larger images that need them for readability. Todo List:
Problem identified: Solution implemented:
This preserves borders on larger content images while removing them from small inline icons. Changes committed:
The fix ensures that only genuinely small icons lose their borders while preserving the visual clarity that borders provide for larger content images. |
- Remove overly broad img[src*="_static/images/"] selector that removed borders from all static images - Replace with more specific selectors targeting only small inline icons: - Size-based selectors for 14px-20px images - Specific patterns like check-circle-green.svg and icon filenames - Small table images with explicit dimensions only - Preserves borders on larger content images and diagrams for better readability - Fixes issue where feature diagrams and screenshots lost necessary visual boundaries Co-authored-by: Carrie Warner (Mattermost) <cwarnermm@users.noreply.github.com>
Newest code from mattermost has been published to preview environment for Git SHA 911bf5e |
@claude - Larger feature diagrams and screenshots aren't yet retaining their borders for better readability. |
Claude finished @cwarnermm's task —— View job ✅ Fixed CSS selectors to preserve borders on larger content imagesTodo List:
Problem solved: Solution implemented: ✅ Preserves borders on larger content images:
✅ Removes borders only from specific small icons:
✅ Eliminates problematic broad selectors:
Changes committed: Commit Large feature diagrams and screenshots now retain their borders for better readability, while small inline icons remain clean and distraction-free. |
Newest code from mattermost has been published to preview environment for Git SHA 6f1768d |
- Replace broad dimension-based selectors with specific icon targeting - Target check-circle-green.svg and badge directory images specifically - Limit table dimension selectors to only 14px-16px icons - Remove overly broad img[src*="icon"] selector - Preserve borders on feature diagrams and screenshots while removing from small icons Co-authored-by: Carrie Warner (Mattermost) <cwarnermm@users.noreply.github.com>
Newest code from mattermost has been published to preview environment for Git SHA 45de21d |
Editor note: Image borders continue to be missing from larger images, such as IME. Revisit with Claude/Cursor for a deeper dive. |
Newest code from mattermost has been published to preview environment for Git SHA dad2673 |
Newest code from mattermost has been published to preview environment for Git SHA 76711a0 |
Resolves #8098
This PR fixes the issue where image borders were adding visual noise to inline icons while still preserving borders for larger content images.
Changes
Examples Fixed
source/about/plans.md
- Check mark icons no longer have distracting borderssource/collaborate/send-messages.rst
- Inline icons clean while screenshots maintain claritysource/about/product.rst
- Large images retain borders for better readabilityGenerated with Claude Code