Adjust live logs buttons with flexbox

pull/218/head
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 {
width: 100%;
float: left;
display: -webkit-flex; /* Safari */
display: flex;
flex-flow: row nowrap;
}
.log-buttons button {
float: left;
display: -webkit-flex; /* Safari */
display: flex;
margin: 10px;
width: auto;
}
.tool-image {
width: 30px;
height: 30px;
}
#toggleLogsButton {
width: 80%;
margin-right: 10px;
flex-grow: 1;
justify-content: center;
align-items: center;
}
#copyLogsButton {
width: 20px;
margin-left: 10px;
margin-right: 10px;
}
.tool-image {
width: 25px;
height: 25px;
justify-content: center;
align-items: center;
}
#clearLogsButton {
width: 20px;
margin-left: 10px;
justify-content: center;
align-items: center;
}
/* Clear floats (clearfix hack) */
/*
.log-buttons:after {
content: "";
clear: both;
display: table;
}
*/
.container {
min-height: 100%;

View File

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