Prompt as Code | GPT Image 2 / 2.5 提示词与案例库,530+ 个案例、20+ 套工业级模板与可复用 Skills,新增 2.5 同提示词对比专区,附完整提示词与生成记录,持续更新。
JavaScript agentsai-image-generationchatgptdsh-plugingpt-image-2image-promptsprompt-as-codeprompt-engineeringskillsworkflow-automation
Add prompt preview modal to site
freestyleflyaa27d16a1748
diff --git a/src/main.jsx b/src/main.jsxindex 6726ea5..03bf698 100644--- a/src/main.jsx+++ b/src/main.jsx@@ -5,12 +5,14 @@ import {Bot,Check,Copy,+ Eye,Github,PackageCheck,Search,Sparkles,Terminal,- WandSparkles+ WandSparkles,+ X} from 'lucide-react';import './styles.css';import skillExampleImage from '../agents/skills/gpt-image-2-style-library/assets/city-life-system-map.png';@@ -64,6 +66,16 @@ const copy = {openGithub: 'Open GitHub project',copied: 'Copied',copyPrompt: 'Copy Prompt',+ copyTemplatePrompt: 'Copy Template',+ closePreview: 'Close preview',+ viewDetails: 'View Details',+ fullPrompt: 'Full Prompt',+ templatePrompt: 'Template Prompt',+ useWhen: 'Use When',+ guidance: 'Guidance',+ pitfalls: 'Pitfalls',+ examples: 'Example Cases',+ source: 'Source',openOnGithub: 'Open on GitHub',limit: (count) => `Showing the first ${count} results for speed. Use search or filters to narrow the gallery.`},@@ -113,6 +125,16 @@ const copy = {openGithub: '打开 GitHub 项目',copied: '已复制',copyPrompt: '复制 Prompt',+ copyTemplatePrompt: '复制模板',+ closePreview: '关闭预览',+ viewDetails: '查看详情',+ fullPrompt: '完整 Prompt',+ templatePrompt: '模板 Prompt',+ useWhen: '适用场景',+ guidance: '使用建议',+ pitfalls: '防坑指南',+ examples: '关联案例',+ source: '来源',openOnGithub: '在 GitHub 打开',limit: (count) => `为了保证浏览速度,当前展示前 ${count} 条结果。可以用搜索或筛选缩小范围。`}@@ -172,6 +194,16 @@ function textFor(value, language) {return value[language] || value.en || value.zh || '';}+function listFor(value, language) {+ const localized = value?.[language] || value?.en || value?.zh || [];+ return Array.isArray(localized) ? localized : [];+}++function compactText(value, maxLength = 180) {+ if (!value || value.length <= maxLength) return value || '';+ return `${value.slice(0, maxLength)}...`;+}+function localizeLabel(value, language, styleLibrary) {const libraryItems = [...(styleLibrary?.categories || []),@@ -201,8 +233,13 @@ function orderByLibrary(values, libraryItems = []) {async function copyToClipboard(text) {if (navigator.clipboard?.writeText) {- await navigator.clipboard.writeText(text);- return;+ try {+ await navigator.clipboard.writeText(text);+ return;+ } catch {+ // Some embedded browsers block the async clipboard API. Fall back to the+ // older selection path so the copy button still works in local previews.+ }}const textarea = document.createElement('textarea');@@ -219,13 +256,76 @@ async function copyToClipboard(text) {function useCopy() {const [copiedId, setCopiedId] = useState(null);- async function copyPrompt(caseItem) {- await copyToClipboard(caseItem.prompt);- setCopiedId(caseItem.id);+ async function copyText(text, id) {+ await copyToClipboard(text);+ setCopiedId(id);window.setTimeout(() => setCopiedId(null), 1600);}- return { copiedId, copyPrompt };+ async function copyPrompt(caseItem) {+ await copyText(caseItem.prompt, `case-${caseItem.id}`);+ }++ return { copiedId, copyPrompt, copyText };+}++function formatTemplatePrompt(item, language, styleLibrary) {+ const title = textFor(item.title, language);+ const description = textFor(item.description, language);+ const useWhen = textFor(item.useWhen, language);+ const guidance = listFor(item.guidance, language);+ const pitfalls = listFor(item.pitfalls, language);+ const tags = [+ localizeLabel(item.category, language, styleLibrary),+ ...(item.styles || []).map((style) => localizeLabel(style, language, styleLibrary)),+ ...(item.scenes || []).map((scene) => localizeLabel(scene, language, styleLibrary)),+ ...(item.tags || []).map((tag) => localizeTemplateTag(tag, language, styleLibrary))+ ].filter(Boolean);+ const uniqueTags = [...new Set(tags)];++ if (language === 'zh') {+ return [+ `模板:${title}`,+ `用途:${useWhen || description}`,+ `视觉方向:${uniqueTags.join(' / ')}`,+ '',+ '请基于以下结构生成一条可直接用于 GPT Image 2 的图片 Prompt:',+ '- 主体:[要生成的产品、人物、空间、界面或信息主题]',+ '- 场景:[使用环境、叙事背景、受众语境]',+ '- 构图:[画面比例、镜头距离、主体位置、层级关系]',+ '- 风格:[材质、光线、色彩、时代感、品牌气质]',+ '- 文本:[必须准确显示的标题、标签、按钮或说明文字]',+ '- 细节:[关键装饰、辅助元素、信息标注、交互层]',+ '- 输出:[清晰度、比例、完成度、可读性要求]',+ '',+ '核心约束:',+ ...guidance.map((line) => `- ${line}`),+ '',+ '需要避免:',+ ...pitfalls.map((line) => `- ${line}`)+ ].join('\n');+ }++ return [+ `Template: ${title}`,+ `Use case: ${useWhen || description}`,+ `Visual direction: ${uniqueTags.join(' / ')}`,+ '',+ 'Create a copy-ready GPT Image 2 prompt with this structure:',+ '- Subject: [product, person, space, interface, or information topic]',+ '- Scene: [context, audience, narrative setting]',+ '- Composition: [aspect ratio, camera distance, focal hierarchy, placement]',+ '- Style: [material, lighting, color, era, brand tone]',+ '- Text: [exact title, labels, buttons, or annotations that must be readable]',+ '- Details: [decorative elements, callouts, UI layers, supporting objects]',+ '- Output: [resolution, aspect ratio, polish level, readability requirements]',+ '',+ 'Core constraints:',+ ...guidance.map((line) => `- ${line}`),+ '',+ 'Avoid:',+ ...pitfalls.map((line) => `- ${line}`)+ ].join('\n');}function Hero({ hotCases, language, repoUrl, totalCases, categoryCount }) {@@ -379,7 +479,7 @@ function SkillSection({ language, repoUrl }) {);}-function TemplateSection({ language, styleLibrary }) {+function TemplateSection({ language, styleLibrary, onOpenTemplate }) {const t = copy[language];const repoDocsUrl = `${styleLibrary.repository || fallbackRepoUrl}/blob/main/${styleLibrary.templateDocument}`;const templates = styleLibrary.templates || [];@@ -403,17 +503,20 @@ function TemplateSection({ language, styleLibrary }) {const description = textFor(item.description, language);return (<article className="caseCard templateVisualCard" key={item.id}>- <a- className="caseImage templateImage"- href={`${repoDocsUrl}#${item.anchor}`}- target="_blank"- rel="noreferrer"+ <button+ className="caseImage imageButton templateImage"+ type="button"+ onClick={() => onOpenTemplate(item)}><img src={item.cover} alt={title} loading="lazy" /><span className="caseBadge">{language === 'zh' ? '模板' : 'Template'} {String(index + 1).padStart(2, '0')}</span>- </a>+ <span className="imageHint">+ <Eye size={15} />+ {t.viewDetails}+ </span>+ </button><div className="caseBody"><div className="caseMeta"><span>{t.templateKind}</span>@@ -426,7 +529,11 @@ function TemplateSection({ language, styleLibrary }) {<span key={`${item.id}-${tag}`}>{localizeTemplateTag(tag, language, styleLibrary)}</span>))}</div>- <div className="cardActions singleAction">+ <div className="cardActions templateActions">+ <button type="button" onClick={() => onOpenTemplate(item)}>+ <Eye size={17} />+ {t.viewDetails}+ </button><a href={`${repoDocsUrl}#${item.anchor}`} target="_blank" rel="noreferrer">{t.openTemplate}<ArrowUpRight size={17} />@@ -441,16 +548,20 @@ function TemplateSection({ language, styleLibrary }) {);}-function PromptCard({ caseItem, copied, language, onCopy, styleLibrary }) {+function PromptCard({ caseItem, copied, language, onCopy, onOpen, styleLibrary }) {const t = copy[language];const tags = [...new Set([...caseItem.styles, ...caseItem.scenes])].slice(0, 4);return (<article className="caseCard">- <a className="caseImage" href={caseItem.githubUrl} target="_blank" rel="noreferrer">+ <button className="caseImage imageButton" type="button" onClick={() => onOpen(caseItem)}><img src={caseItem.image} alt={caseItem.imageAlt} loading="lazy" /><span className="caseBadge">{language === 'zh' ? '案例' : 'Case'} {caseItem.id}</span>- </a>+ <span className="imageHint">+ <Eye size={15} />+ {t.viewDetails}+ </span>+ </button><div className="caseBody"><div className="caseMeta"><span>{localizeLabel(caseItem.category, language, styleLibrary)}</span>@@ -474,6 +585,10 @@ function PromptCard({ caseItem, copied, language, onCopy, styleLibrary }) {{copied ? <Check size={17} /> : <Copy size={17} />}{copied ? t.copied : t.copyPrompt}</button>+ <button type="button" onClick={() => onOpen(caseItem)}>+ <Eye size={17} />+ {t.viewDetails}+ </button><a href={caseItem.githubUrl} target="_blank" rel="noreferrer" aria-label={t.openOnGithub}><Github size={18} /></a>@@ -483,6 +598,157 @@ function PromptCard({ caseItem, copied, language, onCopy, styleLibrary }) {);}+function PreviewDialog({ preview, language, styleLibrary, copiedId, onClose, onCopyText }) {+ const t = copy[language];+ const repoDocsUrl = `${styleLibrary.repository || fallbackRepoUrl}/blob/main/${styleLibrary.templateDocument}`;++ useEffect(() => {+ if (!preview) return undefined;++ const previousOverflow = document.body.style.overflow;+ document.body.style.overflow = 'hidden';++ function handleKeyDown(event) {+ if (event.key === 'Escape') onClose();+ }++ window.addEventListener('keydown', handleKeyDown);+ return () => {+ document.body.style.overflow = previousOverflow;+ window.removeEventListener('keydown', handleKeyDown);+ };+ }, [preview, onClose]);++ if (!preview) return null;++ const { type, item } = preview;+ const isTemplate = type === 'template';+ const title = isTemplate ? textFor(item.title, language) : item.title;+ const description = isTemplate ? textFor(item.description, language) : compactText(item.promptPreview);+ const image = isTemplate ? item.cover : item.image;+ const imageAlt = isTemplate ? title : item.imageAlt;+ const promptText = isTemplate ? formatTemplatePrompt(item, language, styleLibrary) : item.prompt;+ const copyId = isTemplate ? `template-${item.id}` : `case-${item.id}`;+ const isCopied = copiedId === copyId;+ const primaryLink = isTemplate ? `${repoDocsUrl}#${item.anchor}` : item.githubUrl;+ const primaryLabel = isTemplate ? t.openTemplate : t.openOnGithub;+ const meta = isTemplate+ ? [t.templateKind, localizeLabel(item.category, language, styleLibrary)]+ : [+ `${language === 'zh' ? '案例' : 'Case'} ${item.id}`,+ localizeLabel(item.category, language, styleLibrary)+ ];+ const tags = isTemplate+ ? [...new Set([...(item.tags || []), ...(item.styles || []), ...(item.scenes || [])])].slice(0, 8)+ : [...new Set([...(item.styles || []), ...(item.scenes || [])])].slice(0, 8);+ const guidance = listFor(item.guidance, language);+ const pitfalls = listFor(item.pitfalls, language);++ return (+ <div+ className="previewOverlay"+ role="presentation"+ onMouseDown={(event) => {+ if (event.target === event.currentTarget) onClose();+ }}+ >+ <section className="previewDialog" role="dialog" aria-modal="true" aria-labelledby="preview-title">+ <button className="previewClose" type="button" onClick={onClose} aria-label={t.closePreview}>+ <X size={20} />+ </button>+ <div className="previewMedia">+ <img src={image} alt={imageAlt} />+ </div>+ <div className="previewContent">+ <div className="previewMeta">+ {meta.map((itemMeta) => (+ <span key={itemMeta}>{itemMeta}</span>+ ))}+ </div>+ <h2 id="preview-title">{title}</h2>+ <p>{description}</p>+ <div className="tagRow previewTags">+ {tags.map((tag) => (+ <span key={`${type}-${item.id}-${tag}`}>+ {isTemplate+ ? localizeTemplateTag(tag, language, styleLibrary)+ : localizeLabel(tag, language, styleLibrary)}+ </span>+ ))}+ </div>+ {isTemplate && item.useWhen ? (+ <div className="previewSection compactSection">+ <h3>{t.useWhen}</h3>+ <p>{textFor(item.useWhen, language)}</p>+ </div>+ ) : null}+ <div className="previewActions">+ <button type="button" onClick={() => onCopyText(promptText, copyId)}>+ {isCopied ? <Check size={17} /> : <Copy size={17} />}+ {isCopied ? t.copied : isTemplate ? t.copyTemplatePrompt : t.copyPrompt}+ </button>+ <a href={primaryLink} target="_blank" rel="noreferrer">+ {primaryLabel}+ <ArrowUpRight size={17} />+ </a>+ {!isTemplate && item.sourceUrl ? (+ <a href={item.sourceUrl} target="_blank" rel="noreferrer">+ {t.source}+ <ArrowUpRight size={17} />+ </a>+ ) : null}+ </div>+ <div className="previewSection">+ <h3>{isTemplate ? t.templatePrompt : t.fullPrompt}</h3>+ <pre className="promptBlock">{promptText}</pre>+ </div>+ {isTemplate && (guidance.length || pitfalls.length || item.exampleCases?.length) ? (+ <div className="previewColumns">+ {guidance.length ? (+ <div className="previewSection compactSection">+ <h3>{t.guidance}</h3>+ <ul>+ {guidance.map((line) => (+ <li key={line}>{line}</li>+ ))}+ </ul>+ </div>+ ) : null}+ {pitfalls.length ? (+ <div className="previewSection compactSection">+ <h3>{t.pitfalls}</h3>+ <ul>+ {pitfalls.map((line) => (+ <li key={line}>{line}</li>+ ))}+ </ul>+ </div>+ ) : null}+ {item.exampleCases?.length ? (+ <div className="previewSection compactSection">+ <h3>{t.examples}</h3>+ <div className="exampleCaseRow">+ {item.exampleCases.map((caseId) => (+ <a+ href={`${styleLibrary.repository || fallbackRepoUrl}/blob/main/docs/gallery.md#case-${caseId}`}+ target="_blank"+ rel="noreferrer"+ key={caseId}+ >+ #{caseId}+ </a>+ ))}+ </div>+ </div>+ ) : null}+ </div>+ ) : null}+ </div>+ </section>+ </div>+ );+}+function App() {const [siteData, setSiteData] = useState(null);const [styleLibrary, setStyleLibrary] = useState(null);@@ -491,7 +757,8 @@ function App() {const [category, setCategory] = useState('All');const [style, setStyle] = useState('All');const [scene, setScene] = useState('All');- const { copiedId, copyPrompt } = useCopy();+ const [preview, setPreview] = useState(null);+ const { copiedId, copyPrompt, copyText } = useCopy();const repoUrl = siteData?.repository || fallbackRepoUrl;const t = copy[language];@@ -614,7 +881,11 @@ function App() {<SkillSection language={language} repoUrl={repoUrl} />- <TemplateSection language={language} styleLibrary={styleLibrary} />+ <TemplateSection+ language={language}+ styleLibrary={styleLibrary}+ onOpenTemplate={(item) => setPreview({ type: 'template', item })}+ /><section className="gallerySection" id="gallery"><div className="sectionHead">@@ -680,9 +951,10 @@ function App() {{visibleCases.map((caseItem) => (<PromptCardcaseItem={caseItem}- copied={copiedId === caseItem.id}+ copied={copiedId === `case-${caseItem.id}`}language={language}onCopy={copyPrompt}+ onOpen={(item) => setPreview({ type: 'case', item })}styleLibrary={styleLibrary}key={caseItem.id}/>@@ -695,6 +967,14 @@ function App() {</p>)}</section>+ <PreviewDialog+ preview={preview}+ language={language}+ styleLibrary={styleLibrary}+ copiedId={copiedId}+ onClose={() => setPreview(null)}+ onCopyText={copyText}+ /></main>);}diff --git a/src/styles.css b/src/styles.cssindex 63d43a0..de5b196 100644--- a/src/styles.css+++ b/src/styles.css@@ -876,10 +876,23 @@ button {background: rgba(255, 255, 255, 0.05);}+.imageButton {+ width: 100%;+ border: 0;+ padding: 0;+ color: inherit;+ text-align: left;+}+.caseImage img {display: block;width: 100%;height: auto;+ transition: transform 220ms ease;+}++.caseImage:hover img {+ transform: scale(1.025);}.caseBadge {@@ -894,6 +907,33 @@ button {font-weight: 900;}+.imageHint {+ position: absolute;+ right: 10px;+ bottom: 10px;+ display: inline-flex;+ align-items: center;+ gap: 6px;+ max-width: calc(100% - 20px);+ min-height: 32px;+ border: 1px solid rgba(103, 232, 249, 0.42);+ border-radius: 7px;+ padding: 0 9px;+ background: rgba(4, 9, 18, 0.76);+ color: #eaffff;+ font-size: 12px;+ font-weight: 900;+ opacity: 0;+ transform: translateY(6px);+ transition: opacity 180ms ease, transform 180ms ease;+}++.caseImage:hover .imageHint,+.caseImage:focus-visible .imageHint {+ opacity: 1;+ transform: translateY(0);+}+.caseBody {padding: 16px;}@@ -948,11 +988,15 @@ button {.cardActions {display: grid;- grid-template-columns: minmax(0, 1fr) 42px;+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;gap: 8px;margin-top: 16px;}+.templateActions {+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);+}+.cardActions button,.cardActions a {display: inline-flex;@@ -973,6 +1017,222 @@ button {background: rgba(120, 255, 185, 0.14);}+.previewOverlay {+ position: fixed;+ inset: 0;+ z-index: 60;+ display: grid;+ place-items: center;+ padding: 24px;+ background: rgba(3, 6, 13, 0.78);+ backdrop-filter: blur(16px);+}++.previewDialog {+ position: relative;+ display: grid;+ grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);+ width: min(1240px, 100%);+ max-height: min(880px, 92vh);+ overflow: hidden;+ border: 1px solid rgba(255, 255, 255, 0.16);+ border-radius: 8px;+ background:+ radial-gradient(circle at 10% 0%, rgba(66, 230, 255, 0.12), transparent 34%),+ linear-gradient(145deg, rgba(11, 17, 33, 0.98), rgba(7, 11, 22, 0.96));+ box-shadow: 0 34px 120px rgba(0, 0, 0, 0.56);+}++.previewClose {+ position: absolute;+ top: 14px;+ right: 14px;+ z-index: 2;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ width: 42px;+ height: 42px;+ border: 1px solid rgba(255, 255, 255, 0.16);+ border-radius: 8px;+ background: rgba(5, 10, 20, 0.82);+ color: #ffffff;+}++.previewClose:hover {+ border-color: rgba(103, 232, 249, 0.7);+ background: rgba(103, 232, 249, 0.16);+}++.previewMedia {+ display: grid;+ min-height: 420px;+ padding: 22px;+ background:+ linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),+ linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),+ rgba(4, 8, 17, 0.72);+ background-size: 38px 38px;+ place-items: center;+}++.previewMedia img {+ display: block;+ width: 100%;+ max-height: calc(92vh - 68px);+ object-fit: contain;+ border-radius: 8px;+ box-shadow: 0 24px 90px rgba(0, 0, 0, 0.48);+}++.previewContent {+ overflow: auto;+ padding: 30px;+}++.previewMeta {+ display: flex;+ flex-wrap: wrap;+ gap: 8px;+ margin-right: 48px;+}++.previewMeta span {+ display: inline-flex;+ align-items: center;+ min-height: 28px;+ border: 1px solid rgba(103, 232, 249, 0.24);+ border-radius: 999px;+ padding: 0 10px;+ background: rgba(103, 232, 249, 0.08);+ color: #9eeeff;+ font-size: 12px;+ font-weight: 900;+ text-transform: uppercase;+}++.previewContent h2 {+ margin: 16px 48px 10px 0;+ color: #ffffff;+ font-size: clamp(26px, 3vw, 42px);+ line-height: 1.12;+ letter-spacing: 0;+}++.previewContent p {+ margin: 0;+ color: #aebcd0;+ line-height: 1.68;+}++.previewTags {+ margin-top: 16px;+}++.previewActions {+ display: flex;+ flex-wrap: wrap;+ gap: 9px;+ margin-top: 20px;+}++.previewActions button,+.previewActions a {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: 8px;+ min-height: 42px;+ border: 1px solid rgba(255, 255, 255, 0.12);+ border-radius: 8px;+ padding: 0 12px;+ background: rgba(255, 255, 255, 0.08);+ color: #ffffff;+ font-weight: 900;+}++.previewActions button:first-child {+ border-color: rgba(120, 255, 185, 0.36);+ background: rgba(120, 255, 185, 0.12);+ color: #d8ffe4;+}++.previewActions button:hover,+.previewActions a:hover {+ border-color: rgba(103, 232, 249, 0.7);+ background: rgba(103, 232, 249, 0.14);+}++.previewSection {+ margin-top: 22px;+}++.previewSection h3 {+ margin: 0 0 10px;+ color: #eaf3ff;+ font-size: 14px;+ font-weight: 900;+ letter-spacing: 0;+}++.promptBlock {+ max-height: 360px;+ margin: 0;+ overflow: auto;+ border: 1px solid rgba(255, 255, 255, 0.12);+ border-radius: 8px;+ padding: 14px;+ background: rgba(3, 7, 15, 0.72);+ color: #e8f7ff;+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;+ font-size: 13px;+ line-height: 1.7;+ white-space: pre-wrap;+ overflow-wrap: anywhere;+}++.previewColumns {+ display: grid;+ grid-template-columns: repeat(2, minmax(0, 1fr));+ gap: 14px;+ margin-top: 18px;+}++.compactSection {+ border: 1px solid rgba(255, 255, 255, 0.1);+ border-radius: 8px;+ padding: 12px;+ background: rgba(255, 255, 255, 0.045);+}++.compactSection ul {+ display: grid;+ gap: 8px;+ margin: 0;+ padding-left: 18px;+ color: #aebcd0;+ line-height: 1.58;+}++.exampleCaseRow {+ display: flex;+ flex-wrap: wrap;+ gap: 8px;+}++.exampleCaseRow a {+ display: inline-flex;+ align-items: center;+ min-height: 30px;+ border: 1px solid rgba(120, 255, 185, 0.25);+ border-radius: 999px;+ padding: 0 10px;+ background: rgba(120, 255, 185, 0.08);+ color: #c8ffb8;+ font-size: 12px;+ font-weight: 900;+}+.limitNote {margin: 24px 0 0;color: #8d9bb0;@@ -1053,6 +1313,23 @@ button {.sectionHead {grid-template-columns: 1fr;}++ .previewDialog {+ grid-template-columns: 1fr;+ overflow: auto;+ }++ .previewMedia {+ min-height: 300px;+ }++ .previewMedia img {+ max-height: 58vh;+ }++ .previewContent {+ overflow: visible;+ }}@media (max-width: 640px) {@@ -1147,4 +1424,44 @@ button {flex-direction: column;padding: 12px 14px;}++ .cardActions,+ .templateActions {+ grid-template-columns: 1fr;+ }++ .cardActions a[aria-label] {+ min-height: 42px;+ }++ .previewOverlay {+ padding: 10px;+ }++ .previewDialog {+ max-height: calc(100vh - 20px);+ }++ .previewMedia {+ min-height: 220px;+ padding: 12px;+ }++ .previewContent {+ padding: 20px 16px;+ }++ .previewContent h2,+ .previewMeta {+ margin-right: 48px;+ }++ .previewActions button,+ .previewActions a {+ width: 100%;+ }++ .previewColumns {+ grid-template-columns: 1fr;+ }}