🎨 Update tauri and compatible chatgpt

This commit is contained in:
Tw93
2023-06-15 21:16:10 +08:00
parent ade330b75d
commit dbfacc8d59
6 changed files with 274 additions and 95 deletions

View File

@@ -114,17 +114,17 @@ document.addEventListener('DOMContentLoaded', () => {
domEl.addEventListener('mousedown', (e) => {
e.preventDefault();
if (e.buttons === 1 && e.detail !== 2) {
appWindow.startDragging();
appWindow.startDragging().then();
}
});
domEl.addEventListener('touchstart', () => {
appWindow.startDragging();
appWindow.startDragging().then();
});
domEl.addEventListener('dblclick', () => {
appWindow.isFullscreen().then((fullscreen) => {
appWindow.setFullscreen(!fullscreen);
appWindow.setFullscreen(!fullscreen).then();
});
});

View File

@@ -56,6 +56,10 @@ window.addEventListener('DOMContentLoaded', (_event) => {
padding-top: 20px;
}
#__next > div.overflow-hidden.w-full.h-full .min-h-\\[20px\\].items-start.gap-4.whitespace-pre-wrap.break-words {
word-break: break-all;
}
#__next .PageWithSidebarLayout_mainSection__i1yOg {
width: 100%;
max-width: 1000px;
@@ -312,7 +316,8 @@ window.addEventListener('DOMContentLoaded', (_event) => {
}
@media (min-width:1024px){
#__next .text-base.lg\\:max-w-xl, #__next form.stretch.lg\\:max-w-2xl {
#__next .text-base.lg\\:max-w-xl, #__next form.stretch.lg\\:max-w-2xl,
#__next > .w-full.h-full .lg\\:max-w-\\[38rem\\] {
max-width: 44rem;
}
}