Skip to content

Commit

Permalink
[Docs] Update ClangFormatStyleOptions.rst's versionbadge's to have mi…
Browse files Browse the repository at this point in the history
…n-width

This fix #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.
  • Loading branch information
xgupta committed Apr 14, 2023
1 parent 5ddff0d commit 64ae766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/docs/ClangFormatStyleOptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
.. raw:: html

<style type="text/css">
.versionbadge { background-color: #1c913d; height: 20px; display: inline-block; width: 120px; text-align: center; border-radius: 5px; color: #FFFFFF; font-family: "Verdana,Geneva,DejaVu Sans,sans-serif"; }
.versionbadge { background-color: #1c913d; height: 20px; display: inline-block; min-width: 120px; text-align: center; border-radius: 5px; color: #FFFFFF; font-family: "Verdana,Geneva,DejaVu Sans,sans-serif"; }
</style>

.. role:: versionbadge
Expand Down

0 comments on commit 64ae766

Please sign in to comment.