set <a> to break-all

This commit is contained in:
Le Tan 2018-03-02 22:36:37 +08:00
parent 53c36b5a70
commit ba13ac7dc3
4 changed files with 9 additions and 3 deletions

View File

@ -50,6 +50,7 @@ a {
padding: 0;
vertical-align: baseline;
text-decoration: none;
word-break: break-all;
}
a:hover {

View File

@ -49,10 +49,12 @@ a {
margin: 0;
padding: 0;
vertical-align: baseline;
text-decoration: none;
word-break: break-all;
}
a:hover {
text-decoration: none;
text-decoration: underline;
color: #ff6600;
}

View File

@ -48,10 +48,12 @@ a {
margin: 0;
padding: 0;
vertical-align: baseline;
text-decoration: none;
word-break: break-all;
}
a:hover {
text-decoration: none;
text-decoration: underline;
color: #ff6600;
}

View File

@ -125,7 +125,8 @@ QString VNote::generateHtmlTemplate(const QString &p_renderBg,
"word-break: break-all !important; }\n"
"pre code { white-space: pre-wrap !important; "
"word-break: break-all !important; }\n"
"code { word-break: break-all !important; }\n";
"code { word-break: break-all !important; }\n"
"a { word-break: break-all !important; }\n";
if (!g_config->getEnableImageConstraint()) {
// Constain the image width by force in PDF, otherwise, the PDF will
// be cut off.