Skip to content

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

fix: improve case card action layout

freestylefly312dc72e88f2
diff --git a/src/main.jsx b/src/main.jsx
index bd9f73c..434e955 100644
--- a/src/main.jsx
+++ b/src/main.jsx
@@ -2598,6 +2598,7 @@ function PromptCard({
</button>
<a href={caseItem.githubUrl} target="_blank" rel="noreferrer" aria-label={t.openOnGithub}>
<Github size={18} />
+ GitHub
</a>
</div>
</div>
diff --git a/src/styles.css b/src/styles.css
index 753dab5..92a5162 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -1336,13 +1336,22 @@ button {
.cardActions {
display: grid;
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
margin-top: 16px;
}
.caseActions {
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
+ grid-template-columns: repeat(6, minmax(0, 1fr));
+}
+
+.caseActions > * {
+ grid-column: span 2;
+}
+
+.caseActions > :nth-child(4),
+.caseActions > :nth-child(5) {
+ grid-column: span 3;
}
.templateActions {
@@ -1356,14 +1365,19 @@ button {
justify-content: center;
gap: 8px;
min-width: 0;
+ max-width: 100%;
min-height: 42px;
+ padding: 8px 10px;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 8px;
background: rgba(255, 255, 255, 0.08);
color: #ffffff;
font-weight: 800;
+ line-height: 1.15;
text-align: center;
- white-space: nowrap;
+ overflow: hidden;
+ overflow-wrap: anywhere;
+ white-space: normal;
}
.cardActions button:hover,