Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions frontend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/chat/ChatTokenTime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function getLogList() {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 84px;
width: calc(100% + 8px);
height: 26px;
position: absolute;
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/chat/chat-block/ChartPopover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading