diff --git a/src/bbcode.cpp b/src/bbcode.cpp index 9f0641066..323dd1288 100644 --- a/src/bbcode.cpp +++ b/src/bbcode.cpp @@ -137,11 +137,13 @@ class BBCodeMap { m_TagMap["center"] = std::make_pair(QRegExp("\\[center\\](.*)\\[/center\\]"), "
\\1
"); m_TagMap["quote"] = std::make_pair(QRegExp("\\[quote\\](.*)\\[/quote\\]"), - "
\"\\1\"
"); + "
\\1
"); m_TagMap["quote="] = std::make_pair(QRegExp("\\[quote=([^\\]]*)\\](.*)\\[/quote\\]"), - "
\"\\2\"
--\\1

"); + "
\\2
"); + m_TagMap["spoiler"] = std::make_pair(QRegExp("\\[spoiler\\](.*)\\[/spoiler\\]"), + "
Spoiler:
Show
\\1
"); m_TagMap["code"] = std::make_pair(QRegExp("\\[code\\](.*)\\[/code\\]"), - "
\\1
"); + "\\1"); m_TagMap["heading"]= std::make_pair(QRegExp("\\[heading\\](.*)\\[/heading\\]"), "

\\1

"); m_TagMap["line"] = std::make_pair(QRegExp("\\[line\\]"), @@ -181,7 +183,7 @@ class BBCodeMap { m_TagMap["email="] = std::make_pair(QRegExp("\\[email=\"?([^\\]]*)\"?\\](.*)\\[/email\\]"), "\\2"); m_TagMap["youtube"] = std::make_pair(QRegExp("\\[youtube\\](.*)\\[/youtube\\]"), - "http://www.youtube.com/v/\\1"); + "https://www.youtube.com/watch?v=\\1"); // make all patterns non-greedy and case-insensitive diff --git a/src/logbuffer.cpp b/src/logbuffer.cpp index 7314624f4..dfe8f9439 100644 --- a/src/logbuffer.cpp +++ b/src/logbuffer.cpp @@ -191,7 +191,7 @@ QVariant LogBuffer::data(const QModelIndex &index, int role) const switch (role) { case Qt::DisplayRole: { if (index.column() == 0) { - return m_Messages[msgIndex].time; + return m_Messages[msgIndex].time.toString("H: mm: ss"); } else if (index.column() == 1) { const QString &msg = m_Messages[msgIndex].message; if (msg.length() < 200) { diff --git a/src/modinfodialognexus.cpp b/src/modinfodialognexus.cpp index 04683c89a..e606525c6 100644 --- a/src/modinfodialognexus.cpp +++ b/src/modinfodialognexus.cpp @@ -210,10 +210,66 @@ void NexusTab::onModChanged() max-width: 1060px; margin-left: auto; margin-right: auto; + padding-right: 7px; + padding-left: 7px; + padding-top: 20px; + padding-bottom: 20px; + } + + img { + max-width: 100%; + } + + figure.quote { + position: relative; + padding: 24px; + margin: 10px 20px 10px 10px; + color: #e1e1e1; + line-height: 1.5; + font-style: italic; + border-left: 6px solid #57a5cc; + border-left-color: rgb(87, 165, 204); + background: #383838 url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbi1xdW90ZSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJmaWxsOnJnYig2OSwgNjksIDcwKTtoZWlnaHQ6MjlweDtsZWZ0OjE1cHg7cG9zaXRpb246YWJzb2x1dGU7dG9wOjE1cHg7d2lkdGg6MzhweDsiPjxwYXRoIGNsYXNzPSJwYXRoMSIgZD0iTTAgMjAuNjc0YzAgNy4yMjUgNC42NjggMTEuMzM3IDkuODkyIDExLjMzNyA0LjgyNC0wLjA2MiA4LjcxOS0zLjk1NiA4Ljc4MS04Ljc3NSAwLTQuNzg1LTMuMzM0LTguMDA5LTcuNTU4LTguMDA5LTAuMDc4LTAuMDA0LTAuMTctMC4wMDYtMC4yNjItMC4wMDYtMC43MDMgMC0xLjM3NyAwLjEyNC0yLjAwMSAwLjM1MiAxLjA0MS00LjAxNCA1LjE1My04LjY4MyA4LjcxLTEwLjU3MmwtNi4xMTMtNS4wMDJjLTYuODkxIDQuODkxLTExLjQ0OCAxMi4zMzgtMTEuNDQ4IDIwLjY3NHpNMjIuNjc1IDIwLjY3NGMwIDcuMjI1IDQuNjY4IDExLjMzNyA5Ljg5MiAxMS4zMzcgNC44LTAuMDU2IDguNjctMy45NjEgOC42Ny04Ljc2OSAwLTAuMDA0IDAtMC4wMDggMC0wLjAxMiAwLTQuNzc5LTMuMjIzLTguMDAyLTcuNDQ3LTguMDAyLTAuMDk1LTAuMDA2LTAuMjA2LTAuMDA5LTAuMzE4LTAuMDA5LTAuNjg0IDAtMS4zMzkgMC4xMjYtMS45NDMgMC4zNTUgMC45MjctNC4wMTQgNS4xNS04LjY4MiA4LjcwNy0xMC41NzJsLTYuMTI0LTUuMDAyYy02Ljg5MSA0Ljg5MS0xMS40MzcgMTIuMzM4LTExLjQzNyAyMC42NzR6IiBzdHlsZT0iZmlsbDpyZ2IoNjksIDY5LCA3MCk7aGVpZ2h0OmF1dG87d2lkdGg6YXV0bzsiLz48L3N2Zz4=) no-repeat; + } + + figure.quote blockquote { + position: relative; + margin: 0; + padding: 0; + } + + div.spoiler_content { + background: #262626; + border: 1px dashed #3b3b3b; + padding: 5px; + margin: 5px; + } + + div.bbc_spoiler_show{ + border: 1px solid black; + background-color: #454545; + font-size: 11px; + padding: 3px; + color: #E6E6E6; + border-radius: 3px; + display: inline-block; + cursor: pointer; + } + + details summary::-webkit-details-marker { + display:none; + } + + summary:focus { + outline: 0; } a { + /*should avoid overflow with long links forcing wordwrap regardless of spaces*/ + overflow-wrap: break-word; + word-wrap: break-word; + color: #8197ec; text-decoration: none; }