Suppress button wrap in button group after fitting cell width dynamically

后端 未结 4 522
一向
一向 2021-01-12 14:18

According to MetalFrog\'s answer to this problem I\'m trying to fit a cell width to its content:

tr td.fit {
width: 1%;
white-space: nowrap;
}
4条回答
  •  不思量自难忘°
    2021-01-12 15:04

    Adding this css decleration will fix any issues with table cells wrapping button groups.

    .btn-group {
      display: flex;
    }
    

    Explanation: This defines a flex container; inline or block depending on the given value. It enables a flex context for all its direct children. By default, flex items will all try to fit onto one line.

提交回复
热议问题