browser adapter: using margin instead of gap to avoid browser compatibility issues

This commit is contained in:
Zhang Minghan 2023-10-22 08:17:30 +08:00
parent cb5829b85a
commit dd048b6de8
5 changed files with 24 additions and 9 deletions

View File

@ -85,9 +85,10 @@
}
.editor-toolbar {
display: flex;
flex-direction: row;
display: grid;
grid-auto-flow: column;
align-items: flex-end;
gap: 4px;
margin: 4px 0;
width: max-content;
margin: 4px 0 4px auto;
}

View File

@ -44,7 +44,6 @@
align-items: center;
flex-grow: 1;
padding: 15vh 0;
gap: 2rem;
.box {
display: flex;
@ -148,7 +147,7 @@
display: flex;
flex-direction: row;
width: 80%;
margin: 0 auto;
margin: 2rem auto;
max-width: 680px;
.input {

View File

@ -254,7 +254,15 @@
touch-action: pan-y;
padding: 18px;
scrollbar-width: thin;
gap: 8px;
// using margin instead of gap to avoid browser compatibility issues
& > * {
margin-bottom: 8px;
&:last-child {
margin-bottom: 0;
}
}
&::-webkit-scrollbar {
width: 6px;
@ -325,7 +333,7 @@
}
.input-options {
margin: 16px auto 2px;
margin: 6px auto 2px;
display: flex;
flex-direction: row;
align-items: center;

View File

@ -17,7 +17,14 @@
flex-direction: row;
align-content: center;
vertical-align: center;
gap: 10px;
& > * {
margin-right: 8px;
&:last-child {
margin-right: 0;
}
}
}
.logo {

View File

@ -319,7 +319,7 @@ function Quota() {
<div className={`tip`}>
<p>{t("buy.tip")}</p>
<Button variant={`outline`} asChild>
<a href={`https://openai.com/pricing`} target={`_blank`}>
<a href={`https://docs.chatnio.net`} target={`_blank`}>
<ExternalLink className={`h-4 w-4 mr-2`} />
{t("buy.learn-more")}
</a>