mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix(Embedded Systems): The top and bottom spacing is inconsistent between floating mode and full-screen mode; optimization is recommended.
This commit is contained in:
+12
-3
@@ -15,15 +15,24 @@ cssHasPseudo(document)
|
||||
|
||||
function supportsFlexGap() {
|
||||
const flex = document.createElement('div')
|
||||
|
||||
flex.style.display = 'flex'
|
||||
flex.style.flexDirection = 'column'
|
||||
flex.style.rowGap = '1px'
|
||||
|
||||
flex.appendChild(document.createElement('div'))
|
||||
flex.appendChild(document.createElement('div'))
|
||||
const child1 = document.createElement('div')
|
||||
const child2 = document.createElement('div')
|
||||
|
||||
child1.style.height = '1px'
|
||||
child2.style.height = '1px'
|
||||
|
||||
flex.appendChild(child1)
|
||||
flex.appendChild(child2)
|
||||
|
||||
document.body.appendChild(flex)
|
||||
const isSupported = flex.scrollHeight === 1
|
||||
|
||||
const isSupported = flex.scrollHeight === 3
|
||||
|
||||
document.body.removeChild(flex)
|
||||
|
||||
return isSupported
|
||||
|
||||
@@ -61,7 +61,7 @@ function getLogList() {
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 84px;
|
||||
width: calc(100% + 8px);
|
||||
height: 26px;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ const handleDefaultChatChange = (val: any) => {
|
||||
<style lang="less">
|
||||
.chat-type_select.chat-type_select {
|
||||
padding: 4px 0;
|
||||
width: 120px !important;
|
||||
width: auto !important;
|
||||
min-width: 120px !important;
|
||||
box-shadow: 0px 4px 8px 0px #1f23291a;
|
||||
border: 1px solid #dee0e3;
|
||||
|
||||
Reference in New Issue
Block a user