Skip to content

Commit 186d006

Browse files
committed
fix: overflow text in the last table's column
1 parent 807dd28 commit 186d006

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

docs/configuration/local_php_overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Either way, the settings live in the ``local.php`` file.
66
Here are the ``local.php`` parameters for Mautic 4.4.6:
77

88
.. list-table::
9-
:widths: 100 100 100
9+
:widths: 25 50 25
1010
:header-rows: 1
1111

1212
* - Parameter

docs/css/tablefix.css

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
1-
/* override table width restrictions */
2-
.wy-table-responsive table td, .wy-table-responsive table th {
3-
white-space: normal;
1+
/* Ensure the table takes full width and allows wrapping */
2+
.wy-table-responsive table.docutils {
3+
width: 100% !important;
4+
table-layout: auto !important;
45
}
56

6-
.wy-table-responsive {
7-
margin-bottom: 24px;
8-
max-width: 100%;
9-
overflow: visible;
7+
/* Target the cells and the code blocks inside them */
8+
.wy-table-responsive table.docutils td,
9+
.wy-table-responsive table.docutils td code,
10+
.wy-table-responsive table.docutils td span.pre {
11+
white-space: normal !important; /* Allows text to wrap to next line */
12+
word-break: break-word !important; /* Breaks long strings at sensible points */
13+
overflow-wrap: anywhere !important; /* Support for all modern browsers */
1014
}
1115

12-
.wy-table-responsive th p {
13-
margin-bottom: unset;
16+
/* Prevent the container from forcing a horizontal scrollbar */
17+
.wy-table-responsive {
18+
overflow: visible !important;
1419
}
1520

16-
17-
/* img center */
18-
1921
img.align-center {
2022
margin-left: auto;
2123
margin-right: auto;
2224
display: block;
23-
}
25+
}

0 commit comments

Comments
 (0)