Skip to content

Let's use AI to Earn!

huanhang

bulaienaofutuojiesenzhang35fe0e36710a
diff --git a/src/app/[lng]/accounts/components/AddAccountModal/AddAccountModal.module.scss b/src/app/[lng]/accounts/components/AddAccountModal/AddAccountModal.module.scss
index 2446d580..0b84959e 100644
--- a/src/app/[lng]/accounts/components/AddAccountModal/AddAccountModal.module.scss
+++ b/src/app/[lng]/accounts/components/AddAccountModal/AddAccountModal.module.scss
@@ -1,3 +1,7 @@
+/*
+ * 添加账号弹窗样式
+ * 平台按钮区域:当空间不足时自动换行,禁止出现横向滚动条
+ */
.addAccountModal {
:global {
h1 {
@@ -6,16 +10,19 @@
}
.addAccountModal_plats {
display: grid;
- grid-template-columns: repeat(6, 1fr);
+ /* 自适应列数:根据可用宽度自动换行 */
+ grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
gap: 12px;
max-height: 400px;
overflow-y: auto;
+ overflow-x: hidden;
margin-bottom: 20px;
&-item {
padding: 8px;
border-radius: 8px;
height: 90px;
- white-space: nowrap;
+ /* 允许内容换行,避免撑出横向滚动条 */
+ white-space: normal;
display: flex;
flex-direction: column;
align-items: center;