Adjust live logs buttons with flexbox

This commit is contained in:
Simon Stürz 2019-10-04 09:45:41 +02:00
parent 0555449578
commit 7d98bb37c8
2 changed files with 24 additions and 13 deletions

View File

@ -227,41 +227,49 @@ button::-moz-focus-inner { border: 0; }
} }
.log-buttons { .log-buttons {
width: 100%; display: -webkit-flex; /* Safari */
float: left; display: flex;
flex-flow: row nowrap;
} }
.log-buttons button { .log-buttons button {
float: left; display: -webkit-flex; /* Safari */
display: flex;
margin: 10px;
width: auto;
}
.tool-image {
width: 30px;
height: 30px;
} }
#toggleLogsButton { #toggleLogsButton {
width: 80%; flex-grow: 1;
margin-right: 10px; justify-content: center;
align-items: center;
} }
#copyLogsButton { #copyLogsButton {
width: 20px; width: 20px;
margin-left: 10px; justify-content: center;
margin-right: 10px; align-items: center;
}
.tool-image {
width: 25px;
height: 25px;
} }
#clearLogsButton { #clearLogsButton {
width: 20px; width: 20px;
margin-left: 10px; justify-content: center;
align-items: center;
} }
/* Clear floats (clearfix hack) */ /* Clear floats (clearfix hack) */
/*
.log-buttons:after { .log-buttons:after {
content: ""; content: "";
clear: both; clear: both;
display: table; display: table;
} }
*/
.container { .container {
min-height: 100%; min-height: 100%;

View File

@ -565,6 +565,9 @@ void DebugServerHandler::onWebsocketClientConnected()
s_oldLogMessageHandler = qInstallMessageHandler(&logMessageHandler); s_oldLogMessageHandler = qInstallMessageHandler(&logMessageHandler);
} }
// Enable the log categories depending on the current debug configuration
s_websocketClients.append(client); s_websocketClients.append(client);
qCDebug(dcDebugServer()) << "New websocket client connected:" << client->peerAddress().toString(); qCDebug(dcDebugServer()) << "New websocket client connected:" << client->peerAddress().toString();