fex media
This commit is contained in:
parent
518e0d90a5
commit
c15c852668
|
@ -11,7 +11,6 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
padding: 12px 64px;
|
padding: 12px 64px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background: var(--second);
|
background: var(--second);
|
||||||
|
@ -22,8 +21,6 @@
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 150%;
|
line-height: 150%;
|
||||||
span {
|
span {
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
a {
|
a {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
@ -43,6 +40,20 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
.top-banner {
|
||||||
|
padding: 12px 24px 12px 12px;
|
||||||
|
.top-banner-close {
|
||||||
|
right: 10px;
|
||||||
|
}
|
||||||
|
.top-banner-inner {
|
||||||
|
.top-banner-logo {
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.auth-header {
|
.auth-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
|
@ -113,11 +113,10 @@ export function AuthPage() {
|
||||||
function TopBanner() {
|
function TopBanner() {
|
||||||
const [isHovered, setIsHovered] = useState(false);
|
const [isHovered, setIsHovered] = useState(false);
|
||||||
const [isVisible, setIsVisible] = useState(true);
|
const [isVisible, setIsVisible] = useState(true);
|
||||||
|
const [isMobile, setIsMobile] = useState(window.innerWidth < 600);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// 检查 localStorage 中是否有标记
|
// 检查 localStorage 中是否有标记
|
||||||
const bannerDismissed = storage.getItem("bannerDismissed");
|
const bannerDismissed = storage.getItem("bannerDismissed");
|
||||||
|
|
||||||
// 如果标记不存在,存储默认值并显示横幅
|
// 如果标记不存在,存储默认值并显示横幅
|
||||||
if (!bannerDismissed) {
|
if (!bannerDismissed) {
|
||||||
storage.setItem("bannerDismissed", "false");
|
storage.setItem("bannerDismissed", "false");
|
||||||
|
@ -128,6 +127,15 @@ function TopBanner() {
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const handleResize = () => {
|
||||||
|
setIsMobile(window.innerWidth < 600);
|
||||||
|
};
|
||||||
|
|
||||||
|
window.addEventListener("resize", handleResize);
|
||||||
|
return () => window.removeEventListener("resize", handleResize);
|
||||||
|
}, []);
|
||||||
|
|
||||||
const handleMouseEnter = () => {
|
const handleMouseEnter = () => {
|
||||||
setIsHovered(true);
|
setIsHovered(true);
|
||||||
};
|
};
|
||||||
|
@ -151,16 +159,16 @@ function TopBanner() {
|
||||||
onMouseLeave={handleMouseLeave}
|
onMouseLeave={handleMouseLeave}
|
||||||
>
|
>
|
||||||
<div className={styles["top-banner-inner"]}>
|
<div className={styles["top-banner-inner"]}>
|
||||||
|
<Logo className={styles["top-banner-logo"]}></Logo>
|
||||||
<span>
|
<span>
|
||||||
<Logo></Logo>
|
|
||||||
{Locale.Auth.TopTips}
|
{Locale.Auth.TopTips}
|
||||||
<a href={SAAS_CHAT_URL} rel="stylesheet">
|
<a href={SAAS_CHAT_URL} rel="stylesheet">
|
||||||
{Locale.Settings.Access.SaasStart.ChatNow}
|
{Locale.Settings.Access.SaasStart.ChatNow}
|
||||||
<Arrow style={{ marginLeft: "8px" }} />
|
<Arrow style={{ marginLeft: "4px" }} />
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{isHovered && (
|
{(isHovered || isMobile) && (
|
||||||
<Delete className={styles["top-banner-close"]} onClick={handleClose} />
|
<Delete className={styles["top-banner-close"]} onClick={handleClose} />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -5,10 +5,9 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
overflow: hidden;
|
// overflow: hidden;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
border: none;
|
border: none;
|
||||||
|
|
|
@ -250,8 +250,7 @@
|
||||||
|
|
||||||
.select-with-icon {
|
.select-with-icon {
|
||||||
position: relative;
|
position: relative;
|
||||||
max-width: fit-content;
|
max-width: 60%;
|
||||||
|
|
||||||
&.left-align-option {
|
&.left-align-option {
|
||||||
option {
|
option {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
@ -260,9 +259,11 @@
|
||||||
|
|
||||||
.select-with-icon-select {
|
.select-with-icon-select {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
max-width: 100%;
|
||||||
border: var(--border-in-light);
|
border: var(--border-in-light);
|
||||||
padding: 10px 35px 10px 10px;
|
padding: 10px 35px 10px 10px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
white-space: normal;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: var(--white);
|
background-color: var(--white);
|
||||||
|
|
Loading…
Reference in New Issue