diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 659d9e7e6..2cfd144c8 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -14,6 +14,7 @@ - **Input** - Added `disabled` state for inputs #2694 - **Menu** - Appearance of `labeled icon menu` has been modified. Horizontal menus now have icons above text, and icons are slightly larger than before. - **Menu** - Added new `tabular` menu types, `right tabular`, `bottom tabular`, added many new `tabular` menu variables for customizing +- **Table** - New `fixed` table variation added for use with `table-layout: fixed;`. This also supports "..." ellipsis when used with `single line` content **[Enhancements](https://github.com/Semantic-Org/Semantic-UI/issues?q=is%3Aissue+milestone%3A2.1.0+is%3Aclosed)** - **Breadcrumb** - Breadcrumb no longer receives vertical spacing by default. This may often cause vertical alignment issues when displayed next to other `inline-block` content. diff --git a/src/definitions/collections/table.less b/src/definitions/collections/table.less index a94b63717..63ffd70b4 100755 --- a/src/definitions/collections/table.less +++ b/src/definitions/collections/table.less @@ -465,6 +465,21 @@ white-space: nowrap; } +/*-------------- + Fixed +---------------*/ + +.ui.fixed.table { + table-layout: fixed; +} + +.ui.fixed.table th, +.ui.fixed.table td { + overflow: hidden; + text-overflow: ellipsis; +} + + /*-------------- Hoverable ---------------*/ @@ -570,6 +585,10 @@ Single Line ---------------*/ +.ui.table[class*="single line"], +.ui.table [class*="single line"] { + white-space: nowrap; +} .ui.table[class*="single line"], .ui.table [class*="single line"] { white-space: nowrap;