Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 28 additions & 28 deletions src/pages/plugin/plugin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
margin-bottom: 24px;

.plugin-icon {
grid-column: span 1;
width: 80px;
Comment thread
deadlyjack marked this conversation as resolved.
height: 80px;
border-radius: 16px;
Expand Down Expand Up @@ -135,28 +136,6 @@
}
}

.keywords {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin-top: 16px;
position: relative;

.keyword {
background: var(--popup-background-color);
background: color-mix(in srgb,
var(--link-text-color) 10%,
transparent);
color: var(--link-text-color);
padding: 6px 10px;
border-radius: 12px;
font-size: 13px;
transition: all 0.2s;
border: 1px solid var(--link-text-color);
border: 1px solid color-mix(in srgb, var(--link-text-color) 25%, transparent);
}
}

.legacy-editor-warning {
display: inline-flex;
align-items: center;
Expand All @@ -180,7 +159,9 @@
}

.action-buttons {
grid-column: 1/-1;
display: flex;
flex-wrap: wrap;
gap: 8px;
Comment on lines 160 to 164

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 MoreInfo sibling not given matching grid-column span

action-buttons now receives grid-column: 1/-1 so it occupies its own full-width row, but the adjacent MoreInfo component (rendered as <small class="more-info-small">) has no explicit grid-column. Grid auto-placement puts it in row 3 at column 1 (width: auto per the column template), so its text-align: center only centers text within a narrow box rather than across the full header width. For purchased plugins, the ownership/refund line may appear left-aligned and clipped rather than centered under the buttons.


.info:not(.icon),
Expand All @@ -202,6 +183,7 @@
text-align: left;
gap: 5px;
opacity: 0.8;
width: 100%;
}

.btn {
Expand All @@ -215,6 +197,7 @@
display: inline-flex;
align-items: center;
gap: 6px;
width: fit-content;

&:hover {
transform: translateY(-1px);
Expand Down Expand Up @@ -273,6 +256,28 @@
padding: 0 0 24px;

#overview {
.keywords {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin-top: 16px;
position: relative;

.keyword {
background: var(--popup-background-color);
background: color-mix(in srgb,
var(--link-text-color) 10%,
transparent);
color: var(--link-text-color);
padding: 6px 10px;
border-radius: 12px;
font-size: 13px;
transition: all 0.2s;
border: 1px solid var(--link-text-color);
border: 1px solid color-mix(in srgb, var(--link-text-color) 25%, transparent);
}
}

pre {
margin: 16px 0;
border-radius: 8px;
Expand Down Expand Up @@ -459,13 +464,8 @@
justify-content: center;
}

.action-buttons {
flex-direction: column;
width: 100%;
}

.btn {
width: 100%;
flex: 1;
justify-content: center;
}

Expand Down
24 changes: 12 additions & 12 deletions src/pages/plugin/plugin.view.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,6 @@ export default (props) => {
</div>
</div>
) : null}
{Array.isArray(keywords) && keywords.length ? (
<div className="keywords">
{keywords.map((keyword) => (
<span className="keyword">{keyword}</span>
))}
</div>
) : null}
{showEditorSupportWarning ? (
<LegacyEditorWarning unsupportedEditor={unsupportedEditor} />
) : null}
Expand Down Expand Up @@ -208,11 +201,18 @@ export default (props) => {
</span>
</div>
<div className="tab-content">
<div
id="overview"
className="content-section active md"
innerHTML={DOMPurify.sanitize(body, { FORBID_TAGS: ["style"] })}
></div>
<div id="overview" className="content-section active md">
{Array.isArray(keywords) && keywords.length ? (
<div className="keywords">
{keywords.map((keyword) => (
<span className="keyword">{keyword}</span>
))}
</div>
) : null}
<section
innerHTML={DOMPurify.sanitize(body, { FORBID_TAGS: ["style"] })}
/>
</div>
<div id="contributors" className="content-section">
{(() => {
let contributorsList = contributors?.length
Expand Down