Skip to content

Prompt as Code | GPT Image 2 / 2.5 提示词与案例库,530+ 个案例、20+ 套工业级模板与可复用 Skills,新增 2.5 同提示词对比专区,附完整提示词与生成记录,持续更新。

Fix mobile header account placement

freestyleflydca16c3c18ce
diff --git a/src/styles.css b/src/styles.css
index 8536848..ae65c2c 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -2742,26 +2742,46 @@ button {
@media (max-width: 640px) {
.topbar {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) auto;
+ align-items: center;
+ column-gap: 8px;
+ row-gap: 10px;
min-height: 64px;
}
.brand {
- max-width: 205px;
+ grid-column: 1;
+ grid-row: 1;
+ width: fit-content;
+ max-width: min(100%, 205px);
+ }
+
+ .topbarControls {
+ display: contents;
}
.topbar nav {
+ grid-column: 1;
+ grid-row: 2;
+ width: 100%;
max-width: 100%;
overflow-x: auto;
+ scrollbar-width: none;
+ }
+
+ .topbar nav::-webkit-scrollbar {
+ display: none;
}
.topbar nav a {
padding: 0 8px;
}
- .topbarControls {
- justify-content: flex-start;
- width: 100%;
- gap: 6px;
+ .languageSwitch {
+ grid-column: 2;
+ grid-row: 2;
+ justify-self: end;
}
.accountButton,
@@ -2772,7 +2792,10 @@ button {
.accountButton,
.userMenu {
- margin-left: auto;
+ grid-column: 2;
+ grid-row: 1;
+ justify-self: end;
+ margin-left: 0;
}
.dropdownTrigger {