对话框顶部边距设置
This commit is contained in:
parent
fe55fae1f7
commit
589cd6c49c
@ -20,9 +20,11 @@ export default ({ instance }: Props) => {
|
|||||||
chatShow.set(false)
|
chatShow.set(false)
|
||||||
let infoHeader = document.getElementById("infoHeader");
|
let infoHeader = document.getElementById("infoHeader");
|
||||||
let infoSend = document.getElementById("infoSend");
|
let infoSend = document.getElementById("infoSend");
|
||||||
|
let mtBox = document.getElementsByClassName('flex-1 mt-14 flex flex-col overflow-hidden')[0]
|
||||||
if (!chatShow.get()) {
|
if (!chatShow.get()) {
|
||||||
infoHeader.style.display = "flex";
|
infoHeader.style.display = "flex";
|
||||||
infoSend.style.display = "flex";
|
infoSend.style.display = "flex";
|
||||||
|
mtBox.style.marginTop = '3.5rem';
|
||||||
}
|
}
|
||||||
currentConversationId.set(instance.id)
|
currentConversationId.set(instance.id)
|
||||||
showConversationSidebar.set(false)
|
showConversationSidebar.set(false)
|
||||||
|
@ -161,12 +161,15 @@ export default () => {
|
|||||||
const setDataInfo=()=>{
|
const setDataInfo=()=>{
|
||||||
let infoSend = document.getElementById("infoSend");
|
let infoSend = document.getElementById("infoSend");
|
||||||
let infoHeader = document.getElementById("infoHeader");
|
let infoHeader = document.getElementById("infoHeader");
|
||||||
|
let mtBox = document.getElementsByClassName('flex-1 mt-14 flex flex-col overflow-hidden')[0]
|
||||||
if (chatShow.get()) {
|
if (chatShow.get()) {
|
||||||
infoSend.style.display = "none";
|
infoSend.style.display = "none";
|
||||||
infoHeader.style.display = "none";
|
infoHeader.style.display = "none";
|
||||||
|
mtBox.style.marginTop = 0;
|
||||||
} else {
|
} else {
|
||||||
infoHeader.style.display = "flex";
|
infoHeader.style.display = "flex";
|
||||||
infoSend.style.display = "flex";
|
infoSend.style.display = "flex";
|
||||||
|
mtBox.style.marginTop = '3.5rem';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { keys } from 'idb-keyval'
|
import { keys } from 'idb-keyval'
|
||||||
import '../css/list.css'
|
import '../css/list.css'
|
||||||
import { createSignal } from 'solid-js'
|
import { createSignal, Switch, Match } from 'solid-js'
|
||||||
import { uniqid } from '@/pages/chat/ts/store'
|
import { uniqid } from '@/pages/chat/ts/store'
|
||||||
import { useStore } from '@nanostores/solid'
|
import { useStore } from '@nanostores/solid'
|
||||||
|
|
||||||
@ -12,8 +12,15 @@ export default () => {
|
|||||||
let id: any = ''
|
let id: any = ''
|
||||||
id = useStore(uniqid) as any
|
id = useStore(uniqid) as any
|
||||||
return (
|
return (
|
||||||
|
<Switch>
|
||||||
|
<Match when={id()}>
|
||||||
<div style={{ width: '100%', height: '100%' }} id='iframe'>
|
<div style={{ width: '100%', height: '100%' }} id='iframe'>
|
||||||
<iframe src={`https://ansnid.com/share/?id=${id()}`} style={{ width: '100%', height: '100%' }}></iframe>
|
<iframe src={`https://ansnid.com/share/?id=${id()}`} style={{ width: '100%', height: '100%' }}></iframe>
|
||||||
</div>
|
</div>
|
||||||
|
</Match>
|
||||||
|
<Match when={!id()}>
|
||||||
|
<div></div>
|
||||||
|
</Match>
|
||||||
|
</Switch>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user