build: for windows
This commit is contained in:
@@ -99,31 +99,29 @@ body,
|
||||
resize: none;
|
||||
}
|
||||
|
||||
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
||||
/* 全局初始化滚动条样式 */
|
||||
::-webkit-scrollbar {
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
}
|
||||
/* 全局初始化滚动条样式 */
|
||||
::-webkit-scrollbar {
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
border-radius: 10px;
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(255, 255, 255, 0.4);
|
||||
}
|
||||
|
||||
/* Safari 和 Chrome */
|
||||
@media screen and (-webkit-min-device-pixel-ratio: 0) {
|
||||
body {
|
||||
scrollbar-width: thin; /* 告诉 FF 用细滚动条 */
|
||||
scrollbar-color: rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.1); /* FF 前面色后面色 */
|
||||
}
|
||||
/* Safari 和 Chrome */
|
||||
@media screen and (-webkit-min-device-pixel-ratio: 0) {
|
||||
body {
|
||||
scrollbar-width: thin; /* 告诉 FF 用细滚动条 */
|
||||
scrollbar-color: rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.1); /* FF 前面色后面色 */
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,8 +5,15 @@ import React, { useEffect, useState } from 'react'
|
||||
|
||||
let id = 0
|
||||
let onPop = () => {}
|
||||
let onShow = ({ element, key }: { element: React.FC | React.ReactNode; key: number }) => {}
|
||||
let onHide = ({ key }: { key: number }) => {}
|
||||
|
||||
let onShow = ({ element, key }: { element: React.FC | React.ReactNode; key: number }) => {
|
||||
element
|
||||
key
|
||||
}
|
||||
|
||||
let onHide = ({ key }: { key: number }) => {
|
||||
key
|
||||
}
|
||||
|
||||
interface Props {
|
||||
children?: React.ReactNode
|
||||
|
||||
@@ -31,7 +31,7 @@ const AppsPage: FC = () => {
|
||||
return (
|
||||
<Container>
|
||||
<Navbar>
|
||||
<NavbarCenter>Assistant Market</NavbarCenter>
|
||||
<NavbarCenter style={{ borderRight: 'none' }}>Assistant Market</NavbarCenter>
|
||||
</Navbar>
|
||||
<ContentContainer>
|
||||
{Object.keys(assistantGroups).map((group) => (
|
||||
|
||||
@@ -88,10 +88,7 @@ const Container = styled.div`
|
||||
max-width: var(--assistants-width);
|
||||
border-right: 0.5px solid var(--color-border);
|
||||
height: calc(100vh - var(--navbar-height));
|
||||
overflow-y: scroll;
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
overflow-y: auto;
|
||||
`
|
||||
|
||||
const AssistantItem = styled.div`
|
||||
|
||||
@@ -30,6 +30,7 @@ const Messages: FC<Props> = ({ assistant, topic }) => {
|
||||
content: assistant.description,
|
||||
assistantId: assistant.id,
|
||||
topicId: topic.id,
|
||||
status: 'pending',
|
||||
createdAt: new Date().toISOString()
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ const SettingsPage: FC = () => {
|
||||
return (
|
||||
<Container>
|
||||
<Navbar>
|
||||
<NavbarCenter>{t('settings.title')}</NavbarCenter>
|
||||
<NavbarCenter style={{ borderRight: 'none' }}>{t('settings.title')}</NavbarCenter>
|
||||
</Navbar>
|
||||
<ContentContainer>
|
||||
<SettingMenus>
|
||||
|
||||
Reference in New Issue
Block a user