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:
dataeaseShu
2026-08-27 14:55:15 +08:00
committed by dataeaseShu
parent 24a6463b1f
commit fe142f9f75
3 changed files with 14 additions and 5 deletions
+12 -3
View File
@@ -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
+1 -1
View File
@@ -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;