Skip to content

Commit 074daac

Browse files
committed
🎨 #17390
1 parent b12f0fd commit 074daac

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

app/src/assets/scss/business/_config.scss

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,6 @@
249249
&__panel {
250250
height: 100%;
251251
overflow: auto;
252-
253-
&[data-type="downloaded"] .config-bazaar__content {
254-
margin: 16px;
255-
}
256252
}
257253

258254
&__title {
@@ -264,8 +260,7 @@
264260
}
265261

266262
&__content {
267-
display: grid;
268-
gap: 16px;
263+
margin: 1px 16px;
269264
}
270265

271266
&__readme {

app/src/assets/scss/component/_card.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
display: grid;
1919
gap: 16px;
2020
grid-template-columns: repeat(auto-fill, minmax(min(100%, 342px), 1fr));
21-
margin: 16px;
21+
22+
&--nowrap {
23+
grid-template-columns:1fr;
24+
}
2225
}
2326

2427
&--current {
@@ -67,10 +70,6 @@
6770
line-height: 14px;
6871
padding: 3px 11px 11px;
6972

70-
&:not(.b3-card__actions--right) .block__icon {
71-
color: var(--b3-theme-on-surface-light);
72-
}
73-
7473
&--right {
7574
padding-left: 0;
7675
padding-bottom: 0;

app/src/config/bazaar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export const bazaar = {
101101
<input ${window.siyuan.config.bazaar.petalDisabled ? "" : " checked"} data-type="plugins-enable" type="checkbox" class="b3-switch fn__flex-center" style="margin-right: 8px">
102102
<div class="counter counter--bg fn__none fn__flex-center ariaLabel" data-position="north" aria-label="${window.siyuan.languages.total}"></div>
103103
</div>
104-
<div id="configBazaarDownloaded" class="config-bazaar__content">
104+
<div id="configBazaarDownloaded" class="config-bazaar__content b3-cards b3-cards--nowrap">
105105
${loadingHTML}
106106
</div>
107107
</div>
@@ -359,7 +359,7 @@ export const bazaar = {
359359
<span class="fn__space"></span>
360360
<div class="counter counter--bg fn__flex-center ariaLabel" data-position="north" aria-label="${window.siyuan.languages.total}">${allCount}</div>
361361
</div>
362-
<div class="config-bazaar__content">${html}</div>`;
362+
<div class="config-bazaar__content b3-cards b3-cards--nowrap">${html}</div>`;
363363
});
364364
},
365365
_genMyHTML(bazaarType: TBazaarType, app: App, updateUpdate = true) {

app/src/protyle/header/Background.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export class Background {
266266
});
267267
const dialog = new Dialog({
268268
title: window.siyuan.languages.builtIn,
269-
content: `<div class="b3-cards">${html}</div>`,
269+
content: `<div class="b3-cards" style="padding: 16px">${html}</div>`,
270270
width: isMobile() ? "92vw" : "912px",
271271
height: isMobile() ? "80vh" : "70vh",
272272
});

0 commit comments

Comments
 (0)