Skip to content

Let's use AI to Earn!

fix: Fixed the issue where there were too many descriptions in the release pop-up box and the descriptions would exceed when it was folded up

gaoSirc35801999c37
diff --git a/src/components/PublishDialog/compoents/PlatParamsSetting/index.tsx b/src/components/PublishDialog/compoents/PlatParamsSetting/index.tsx
index 231d280e..06bd6cbe 100644
--- a/src/components/PublishDialog/compoents/PlatParamsSetting/index.tsx
+++ b/src/components/PublishDialog/compoents/PlatParamsSetting/index.tsx
@@ -94,13 +94,15 @@ const PlatParamsSetting = memo(
setExpandedPubItem(pubItem);
}}
>
- {pubItem.params.des ? (
- pubItem.params.des
- ) : (
- <span style={{ color: "var(--grayColor7)" }}>
- {t("form.descriptionPlaceholder")}...
- </span>
- )}
+ <p>
+ {pubItem.params.des ? (
+ pubItem.params.des
+ ) : (
+ <span style={{ color: "var(--grayColor7)" }}>
+ {t("form.descriptionPlaceholder")}...
+ </span>
+ )}
+ </p>
</div>
)}
</div>
diff --git a/src/components/PublishDialog/compoents/PlatParamsSetting/platParamsSetting.module.scss b/src/components/PublishDialog/compoents/PlatParamsSetting/platParamsSetting.module.scss
index 42588867..41d24572 100644
--- a/src/components/PublishDialog/compoents/PlatParamsSetting/platParamsSetting.module.scss
+++ b/src/components/PublishDialog/compoents/PlatParamsSetting/platParamsSetting.module.scss
@@ -3,6 +3,7 @@
.platParamsSetting-wrapper {
display: flex;
width: 100%;
+ min-width: 0;
}
.platParamsSetting-icon {
margin: 5px 10px 0 0;
@@ -14,6 +15,7 @@
.platParamsSetting-des {
border: 1px solid var(--grayColor3);
width: 100%;
+ min-width: 0;
border-radius: 4px;
height: 40px;
cursor: pointer;
@@ -21,6 +23,11 @@
align-items: center;
padding-left: 15px;
color: var(--grayColor11);
+ p {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
}
.platParamsSetting-label {