Doc: Adjust styling of QML property signatures in offline docs

Recent changes in QDoc's output for QML type reference pages included
rearranging the `extra synopsis` element, i.e, read-only, since, and
deprecation information for properties.

As a result, the existing CSS for the offline documentation caused some
elements to be rendered on top of each other when using the qlitehtml-
based backend in Qt Assistant and Qt Creator.

To fix the layout, set a fixed width for the table elements that
are used to display the properties, property groups, and methods.
This change brings the style of QML reference pages closer to that
of C++ reference, where signatures also have a fixed width.

Pick-to: 6.8
Fixes: QTBUG-136990
Change-Id: I72adbeaca46cd9dd99c54368257268dc8db6bfdc
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: David Boddie <david.boddie@qt.io>
(cherry picked from commit a9a68a87b9d54c528c6a9784095636ef54ac53be)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 8959c5055a4b6b14a5d5c310d10b3b6eb63f2333)
This commit is contained in:
Topi Reinio 2025-06-10 11:22:28 +00:00 committed by Qt Cherry-pick Bot
parent 04b40129e7
commit 12e145a875
2 changed files with 8 additions and 0 deletions

View File

@ -74,6 +74,10 @@ table td {
padding: 6px 10px 6px 10px;
}
table.qmlname {
width: 75%;
}
table.qmlname td {
padding: 0px;
margin-left: 6px;

View File

@ -479,6 +479,10 @@ table, pre, .LegaleseLeft {
margin: 0px
}
table.qmlname {
width: 75%;
}
.LegaleseLeft {
font-family: monospace;
white-space: pre-wrap;