From c87ecaafa449b78564e7c2fc2edbf83c54ce94be Mon Sep 17 00:00:00 2001 From: acetone Date: Thu, 30 Dec 2021 10:29:10 -0500 Subject: [PATCH] airplane object CSS hover edited --- html/style.css | 5 ++--- httpserver.cpp | 4 +--- httpserver.h | 5 ++++- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/html/style.css b/html/style.css index 0e2490b..ff31c88 100644 --- a/html/style.css +++ b/html/style.css @@ -105,13 +105,12 @@ body { width: 6%; height: 50%; border: none; - align-items: center; + opacity: .6; margin-left: 1%; } .main_header__title_airplaine:hover { - width: 15%; - height: 60%; + opacity: 1; } .main_header__search { diff --git a/httpserver.cpp b/httpserver.cpp index 2658d18..f0cbf6f 100644 --- a/httpserver.cpp +++ b/httpserver.cpp @@ -17,9 +17,6 @@ #include const char CRITICAL_ERROR[] {"Critical error

NOT FOUND

Maybe it's compile time error

"}; -constexpr int MAX_MESSAGE_LENGTH_WITHOUT_WBR = 30; -constexpr int MAX_NICKNAME_LENGTH_WITHOUT_WBR = 20; -constexpr int BUFFER_SIZE = 2048; HttpServer::HttpServer(const QString &address, quint16 port, const QString& logFolder, const QString& mainChannel, QObject *parent) : @@ -1245,6 +1242,7 @@ void HttpServer::writeRealTimeChatPage(QTcpSocket *socket, QString &urlPath, boo replaceTag(page, "MAIN_HEADER", originalChannelName); replaceTag(page, "REALTIME_LINK", "/"+server+"/"+channel+"/"+year+"/"+month+"/"+day); replaceTag(page, "AIRPLAIN_TITLE", "Back to plain text log"); + page.replace("class=\"main_header__title_airplaine\"", "class=\"main_header__title_airplaine\" style=\"transform: scale(-1,1)\""); int currentOnline = 0; QString onlineUserS; diff --git a/httpserver.h b/httpserver.h index b72bf7c..264d3df 100644 --- a/httpserver.h +++ b/httpserver.h @@ -8,7 +8,10 @@ #include #include -constexpr int MSECS_TO_AUTOREMOVE_MESSAGES_FROM_BUFFER {10000}; // 10 secs +constexpr int MSECS_TO_AUTOREMOVE_MESSAGES_FROM_BUFFER {15000}; // 15 secs +constexpr int MAX_MESSAGE_LENGTH_WITHOUT_WBR = 30; +constexpr int MAX_NICKNAME_LENGTH_WITHOUT_WBR = 20; +constexpr int BUFFER_SIZE = 2048; const QString HTTP_ACTUAL_ETAG {"2021-12-30 2.1.0"}; // Change it if svg, css or ico was modified class Message : public QObject