Skip to content

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

Merged
merged 6 commits into from
Jun 20, 2025
Merged
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
19 changes: 18 additions & 1 deletion source/_static/css/mattermost-global.css
Original file line number Diff line number Diff line change
Expand Up @@ -2006,11 +2006,28 @@ mark {
padding: 0rem 1rem 1rem 1rem;
}

/* Image borders */
/* Image borders - Apply to content images but not UI elements */
/* Default: Apply borders to all images */
img {
border: 1px solid #d3d3d3;
}

body:not([data-custom-theme="light"]) img {
border: 1px solid #4a4a4a;
}

/* Remove borders from globally defined UI elements and navigation */
/* All images from _static directory (UI elements, not content) */
img[src*="_static/images/"],
img[src*="/_static/images/"],
/* Specific classes for globally defined images */
img.mm-badge-flag,
img.mm-badge-deployment,
img.theme-icon,
/* Small table icons */
table img[width="14"], table img[width="16"],
table img[height="14"], table img[height="16"],
/* Badge wrapper images */
.mm-badge img {
border: none !important;
}