Skip to content
This repository was archived by the owner on Nov 21, 2023. It is now read-only.

Commit 8883e4d

Browse files
committed
some fix
1 parent 46b5033 commit 8883e4d

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

app/blocks/paragraph.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { title } from '../fields/title.js'
22
import { text_markdown } from '../fields/text-markdown.js'
33
import { grid } from '../fields/grid.js'
4+
import { offset } from '../fields/offset.js'
45
import { align } from '../fields/align.js'
56
import { background } from '../fields/background.js'
67

@@ -16,6 +17,7 @@ export const block_paragraph = {
1617
title,
1718
text_markdown,
1819
grid,
20+
offset,
1921
align,
2022
background
2123
]

app/blocks/pushes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { image_alt } from '../fields/image-alt.js'
33
import { title } from '../fields/title.js'
44
import { text } from '../fields/text.js'
55
import { cta } from '../fields/cta.js'
6-
import { align } from '../fields/align.js'
6+
import { offset } from '../fields/offset.js'
77
import { background } from '../fields/background.js'
88

99
export const block_pushes = {
@@ -49,7 +49,7 @@ export const block_pushes = {
4949
image_alt,
5050
]
5151
},
52-
align,
52+
offset,
5353
title,
5454
text,
5555
cta

app/fields/align.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const align = {
22
name: 'align',
3-
title: 'Alignement',
3+
label: 'Alignement du texte',
44
widget: 'select',
55
options: [
66
{ label: 'à gauche', value: 'start' },

app/fields/offset.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export const offset = {
2+
name: 'offset',
3+
label: 'Alignement',
4+
widget: 'select',
5+
options: [
6+
{ label: 'à gauche', value: 'start' },
7+
{ label: 'à droite', value: 'end' },
8+
{ label: 'au centre', value: 'center' }
9+
],
10+
default: 'start',
11+
i18n: 'duplicate'
12+
}

0 commit comments

Comments
 (0)