[all-commits] [llvm/llvm-project] 64ae76: [Docs] Update ClangFormatStyleOptions.rst's versio...

Shivam Gupta via All-commits all-commits at lists.llvm.org
Fri Apr 14 11:27:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 64ae7669a7cefa12ea1117680cf9bfb5c3f6084c
      https://github.com/llvm/llvm-project/commit/64ae7669a7cefa12ea1117680cf9bfb5c3f6084c
  Author: Shivam Gupta <Shivam.Gupta2 at amd.com>
  Date:   2023-04-14 (Fri, 14 Apr 2023)

  Changed paths:
    M clang/docs/ClangFormatStyleOptions.rst

  Log Message:
  -----------
  [Docs] Update ClangFormatStyleOptions.rst's versionbadge's to have min-width

This fix https://github.com/llvm/llvm-project/issues/61934

By default, the width property is used to set the width of a table column.
However, if the content of a cell in that column is wider than the width
specified by the width property, the cell's content will overflow the
column and the table will become wider than the specified width.
This causes the version numbers to be displayed outside of their table cells.

Using the min-width property instead of width ensures that the column is
wide enough to accommodate the content of its cells. If a cell's content is
wider than the specified min-width, the column will expand to fit the content.




More information about the All-commits mailing list