Skip to content

Commit 369104b

Browse files
merge branch v2 (release 2.0.0-alpha.41)
2 parents c82e048 + 95d9797 commit 369104b

File tree

22 files changed

+318
-137
lines changed

22 files changed

+318
-137
lines changed

CHANGELOG.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
11
# Changelog
22

3-
## [v2.0.0-alpha.40](https://github.com/marcantondahmen/automad/commit/322d2e033ec1e2147874017ebd9d065157dbf619)
3+
## [v2.0.0-alpha.41](https://github.com/marcantondahmen/automad/commit/26fffa59ae5cdc8e555e1977732fe9247ce5a05f)
44

5-
Sun, 3 Aug 2025 14:21:13 +0200
5+
Sat, 16 Aug 2025 20:16:42 +0200
6+
7+
### Breaking Changes
8+
9+
- remove option to make a section block match the row height in a flex layout and fix stretch flex layout in a parent section ([873686df6](https://github.com/marcantondahmen/automad/commit/873686df66418aeb442eecd2fcf9cc78603443d5))
10+
11+
### New Features
12+
13+
- add option to fill out the entire rectangle when using the row layout of the gallery block ([f44920e6e](https://github.com/marcantondahmen/automad/commit/f44920e6ebf4680e272c4360af8ec60f35686eb2))
14+
15+
### Bugfixes
16+
17+
- remove option to make a section block match the row height in a flex layout and fix stretch flex layout in a parent section ([873686df6](https://github.com/marcantondahmen/automad/commit/873686df66418aeb442eecd2fcf9cc78603443d5))
18+
- fix field filters in customization tab ([ecec9f56e](https://github.com/marcantondahmen/automad/commit/ecec9f56e06a9b9c84b234aeaa1230a650827156))
19+
- fix issue with filtering empty tune data ([4cada3d24](https://github.com/marcantondahmen/automad/commit/4cada3d240d59e3788af533781a40f6035c7ac3d))
20+
- fix rendering of gallery blocks ([c0685a7d7](https://github.com/marcantondahmen/automad/commit/c0685a7d773f09807a3d3a1f5678f74d0bc4da10))
21+
22+
## [v2.0.0-alpha.40](https://github.com/marcantondahmen/automad/commit/c82e048885f52e5e7638a05ea455ec4b8280956a)
23+
24+
Sun, 3 Aug 2025 15:25:26 +0200
625

726
### New Features
827

@@ -660,18 +679,3 @@ Wed, 24 Nov 2021 09:35:46 +0100
660679
- **ui**: add feed configuration ui ([686d563d1](https://github.com/marcantondahmen/automad/commit/686d563d11a8cdec881c6053cc01ad6049e76400))
661680
- **ui**: redesign system settings ui ([aa84f8021](https://github.com/marcantondahmen/automad/commit/aa84f8021a0da6ff8d587e5f384cf6b6a46d1b4d))
662681
- remove gulp-util and update dependencies ([02ae09d59](https://github.com/marcantondahmen/automad/commit/02ae09d59931fc09f92fb8fd0161147d199031c4))
663-
664-
## [v1.9.4](https://github.com/marcantondahmen/automad/commit/e52d003777a26e28746ab50140a0ebb65f0a28e5)
665-
666-
Thu, 11 Nov 2021 12:06:24 +0100
667-
668-
### New Features
669-
670-
- **themes**: improve color scheme of dark theme ([11c27250f](https://github.com/marcantondahmen/automad/commit/11c27250f46b2ff9b8438289096e48a6b48f4aec))
671-
- **ui**: allow uppercase letters in custom field names ([0d11fc032](https://github.com/marcantondahmen/automad/commit/0d11fc032d0082a01190c8ed1cf020fdb31445fd))
672-
673-
### Bugfixes
674-
675-
- **core**: fix :current and :currentPath properties of pages that are redirected ([f79a2cfa9](https://github.com/marcantondahmen/automad/commit/f79a2cfa9907334f4615a5dadda09ab7c4fa0635))
676-
- **ui**: fix overflowing select buttons ([78c3f9a7d](https://github.com/marcantondahmen/automad/commit/78c3f9a7d746422ec9a3e3ae1597b3e96bc5054f))
677-
- **ui**: fix overflowing toolbox ([bad19924b](https://github.com/marcantondahmen/automad/commit/bad19924b32a58aa65248844fa52b7b0d2df6b23))

automad/lang/english.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
"fontSize": "Font Size",
180180
"forgotPassword": "Forgot Password",
181181
"galleryBlockLayout": "Layout",
182-
"galleryBlockLayoutCleanBottom": "Clean bottom edge",
182+
"galleryBlockLayoutFillRectangle": "Fill rectangle",
183183
"galleryBlockLayoutColumnWidth": "Column Width",
184184
"galleryBlockLayoutColumns": "Column Layout",
185185
"galleryBlockLayoutGap": "Gap",
@@ -269,7 +269,6 @@
269269
"mailBlockTitle": "Mail Form",
270270
"mailBlockTo": "Receiving mail address",
271271
"maintenanceModeText": "The server is under maintenance. All content stays accessible to visitors as usual but is currently read-only. Grap a quick coffee and as soon as maintenance is finished you can resume editing.",
272-
"matchRowHeight": "Match Content to Row Height",
273272
"metaDescription": "Meta Description (optional)",
274273
"metaTitle": "Meta Title (optional)",
275274
"missingEmailAlertBody": "There is currently no email address associated with your user account. In order to be able to receive password reset emails or other system notifications you can add an email address inside the user settings.",

automad/src/client/admin/components/Fields/EditorField.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,14 @@ export class EditorFieldComponent extends BaseFieldComponent {
103103
const { blocks: raw } =
104104
(await api.saver.save()) as EditorOutputData;
105105

106-
const blocks = raw.map((block) => {
107-
block.tunes = filterEmptyData<KeyValueMap>(block.tunes);
108-
109-
return block;
110-
});
106+
const blocks =
107+
raw?.map((block) => {
108+
block.tunes = filterEmptyData<KeyValueMap>(
109+
block.tunes ?? {}
110+
);
111+
112+
return block;
113+
}) || [];
111114

112115
if (
113116
JSON.stringify(this.value.blocks) ===

automad/src/client/admin/components/Filter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class FilterComponent extends BaseComponent {
7979
protected get targetSelector(): string {
8080
return (
8181
this.getAttribute(Attr.target) ||
82-
`section [${Attr.api}] .${CSS.field}:not(am-title-field):not(.${CSS.card} .${CSS.field}), .${CSS.card}`
82+
`section [${Attr.api}] .${CSS.field}:not(am-title-field):not(.${CSS.card} .${CSS.field}), .${CSS.card}, .${CSS.alert}, .${CSS.grid}, hr, p`
8383
);
8484
}
8585

automad/src/client/admin/components/PackageManager/PackageCard.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ import {
5050
import { Package } from '@/admin/types';
5151
import { BaseComponent } from '@/admin/components/Base';
5252

53-
const packageBrowser = 'https://packages.automad.org';
54-
5553
/**
5654
* Perform a package manager action.
5755
*
@@ -295,7 +293,12 @@ const createFooter = (pkg: Package, container: HTMLElement): void => {
295293
*
296294
* @extends BaseComponent
297295
*/
298-
class PackageCardComponent extends BaseComponent {
296+
export class PackageCardComponent extends BaseComponent {
297+
/**
298+
* The tag name.
299+
*/
300+
static TAG_NAME = 'am-package-card';
301+
299302
/**
300303
* Render the package card as soon as the package data is provided.
301304
*/
@@ -320,4 +323,4 @@ class PackageCardComponent extends BaseComponent {
320323
}
321324
}
322325

323-
customElements.define('am-package-card', PackageCardComponent);
326+
customElements.define(PackageCardComponent.TAG_NAME, PackageCardComponent);

automad/src/client/admin/components/PackageManager/PackageList.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
*/
3434

3535
import {
36+
Attr,
3637
create,
3738
CSS,
3839
EventName,
@@ -44,6 +45,7 @@ import {
4445
} from '@/admin/core';
4546
import { KeyValueMap, Package } from '@/admin/types';
4647
import { BaseComponent } from '@/admin/components/Base';
48+
import { PackageCardComponent } from './PackageCard';
4749

4850
/**
4951
* Get and sort all required package data in order to generate the package card grid.
@@ -88,7 +90,10 @@ class PackageListComponent extends BaseComponent {
8890
this.innerHTML = html`
8991
<div class="${CSS.flex} ${CSS.flexGap}">
9092
<am-update-all-packages></am-update-all-packages>
91-
<am-filter placeholder="packagesFilter"></am-filter>
93+
<am-filter
94+
placeholder="packagesFilter"
95+
${Attr.target}="${PackageCardComponent.TAG_NAME}"
96+
></am-filter>
9297
</div>
9398
`;
9499

automad/src/client/admin/editor/blocks/Gallery.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class GalleryBlock extends BaseBlock<GalleryBlockData> {
8585
* @param data.columnWidthPx
8686
* @param data.rowHeightPx
8787
* @param data.gapPx
88-
* @param data.cleanBottom
88+
* @param data.fillRectangle
8989
* @return the gallery block data
9090
*/
9191
protected prepareData(data: GalleryBlockData): GalleryBlockData {
@@ -95,7 +95,7 @@ export class GalleryBlock extends BaseBlock<GalleryBlockData> {
9595
columnWidthPx: data.columnWidthPx || 250,
9696
rowHeightPx: data.rowHeightPx || 250,
9797
gapPx: data.gapPx || 5,
98-
cleanBottom: data.cleanBottom ?? false,
98+
fillRectangle: data.fillRectangle ?? false,
9999
};
100100
}
101101

@@ -178,7 +178,7 @@ export class GalleryBlock extends BaseBlock<GalleryBlockData> {
178178
listen(modal, 'change', () => {
179179
this.data = {
180180
...this.data,
181-
cleanBottom: false, // Always set false, since false toggles are ignored by collectFieldData()
181+
fillRectangle: false, // Always set false, since false toggles are ignored by collectFieldData()
182182
...collectFieldData(modal),
183183
};
184184
});
@@ -231,12 +231,12 @@ export class GalleryBlock extends BaseBlock<GalleryBlockData> {
231231
{ required: '' }
232232
);
233233

234-
if (this.data.layout == 'columns') {
234+
if (['columns', 'rows'].includes(this.data.layout)) {
235235
createField(FieldTag.toggle, settings, {
236-
name: 'cleanBottom',
237-
value: this.data.cleanBottom,
236+
name: 'fillRectangle',
237+
value: this.data.fillRectangle,
238238
key: uniqueId(),
239-
label: App.text('galleryBlockLayoutCleanBottom'),
239+
label: App.text('galleryBlockLayoutFillRectangle'),
240240
});
241241
}
242242

automad/src/client/admin/editor/blocks/Section.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ export const sectionBorderStyles = [
155155
export const styleDefaults: SectionStyle = {
156156
card: false,
157157
shadow: false,
158-
matchRowHeight: false,
159158
color: '',
160159
backgroundColor: '',
161160
backgroundBlendMode: 'normal',
@@ -609,7 +608,6 @@ export class SectionBlock extends BaseBlock<SectionBlockData> {
609608
};
610609

611610
field(FieldTag.toggle, 'card', 'optimizeContentForCards', body);
612-
field(FieldTag.toggle, 'matchRowHeight', 'matchRowHeight', body);
613611

614612
const group1 = create('div', [CSS.grid, CSS.gridAuto], {}, body);
615613

@@ -730,10 +728,6 @@ export class SectionBlock extends BaseBlock<SectionBlockData> {
730728
classes.push(`${baseClass}--overflow-hidden`);
731729
}
732730

733-
if (style.matchRowHeight) {
734-
classes.push(`${baseClass}--match-height`);
735-
}
736-
737731
this.holder.className = classes.join(' ');
738732

739733
const inline: string[] = [];

automad/src/client/admin/styles/components/editor/block.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
position: relative;
3737
flex-basis: 100%;
3838
flex-grow: 0;
39+
40+
display: flex;
41+
align-items: stretch;
3942
min-width: 16rem;
4043
margin: 0 !important;
4144
padding: 0 !important;
@@ -51,6 +54,8 @@
5154

5255
&__content {
5356
position: relative;
57+
display: flex;
58+
align-items: stretch;
5459
width: 100%;
5560
padding: 0.2rem 0;
5661
max-width: @am-bl-editor-block-max-width !important;

automad/src/client/admin/styles/components/editor/blocks/section.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131

132132
&__editor {
133133
display: block;
134+
flex-grow: 1;
134135

135136
& > .codex-editor > .codex-editor__redactor {
136137
--space: var(--gap, 1px);
@@ -242,6 +243,7 @@
242243
}
243244

244245
.ce-block & > .codex-editor {
246+
height: 100%;
245247
color: var(--color, inherit);
246248
padding-top: var(--paddingTop);
247249
padding-bottom: var(--paddingBottom);

0 commit comments

Comments
 (0)