Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(table): images in tables did not display properly
Browse files Browse the repository at this point in the history
This one needs a bit of explanation:
The main cause of this bug was introduced in 2014 by Semantic-Org/Semantic-UI@400949c
It was related to issue Semantic-Org/Semantic-UI#1510, where it seemed to be fixed but the main cause was the `collapsing` class set to the cell column, which causes the width to be reduced to 1px to force the browser to reduce its width until the main occupied content got the minimum width.
So, this PR actually reverts the fix for Semantic-Org/Semantic-UI#1510 and fixes the main cause correctly now.

Closes #227
lubber-de authored and Sean committed Dec 18, 2018
1 parent 9d134e1 commit b949981
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/definitions/collections/table.less
Original file line number Diff line number Diff line change
@@ -209,10 +209,8 @@
*******************************/

/* UI Image */
.ui.table th .image,
.ui.table th .image img,
.ui.table td .image,
.ui.table td .image img {
.ui.table .collapsing .image,
.ui.table .collapsing .image img {
max-width: none;
}

0 comments on commit b949981

Please sign in to comment.