From b9499816508fb5a579ea3f03a101d4b976b063a3 Mon Sep 17 00:00:00 2001 From: Marco 'Lubber' Wienkoop Date: Mon, 19 Nov 2018 14:18:19 +0100 Subject: [PATCH] fix(table): images in tables did not display properly This one needs a bit of explanation: The main cause of this bug was introduced in 2014 by https://github.com/Semantic-Org/Semantic-UI/commit/400949ce41a382807e284aec0e3f98601f0421b8 It was related to issue https://github.com/Semantic-Org/Semantic-UI/issues/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 https://github.com/Semantic-Org/Semantic-UI/issues/1510 and fixes the main cause correctly now. Closes #227 --- src/definitions/collections/table.less | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/definitions/collections/table.less b/src/definitions/collections/table.less index c3680dcbc9..6537878780 100755 --- a/src/definitions/collections/table.less +++ b/src/definitions/collections/table.less @@ -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; }