Skip to content

Commit 942c931

Browse files
authored
💄 Remove wrapping div on block stub in editor (#333)
1 parent 3a58280 commit 942c931

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

src/Console/stubs/views/block.stub

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1-
<div {{ $attributes }}>
2-
@if ($items)
3-
<ul>
4-
@foreach ($items as $item)
5-
<li>{{ $item['item'] }}</li>
6-
@endforeach
7-
</ul>
8-
@else
9-
<p>{{ $block->preview ? 'Add an item...' : 'No items found!' }}</p>
10-
@endif
1+
@unless ($block->preview)
2+
<div {{ $attributes }}>
3+
@endunless
114

12-
<div>
13-
<InnerBlocks template="{{ $block->template }}" />
14-
</div>
5+
@if ($items)
6+
<ul>
7+
@foreach ($items as $item)
8+
<li>{{ $item['item'] }}</li>
9+
@endforeach
10+
</ul>
11+
@else
12+
<p>{{ $block->preview ? 'Add an item...' : 'No items found!' }}</p>
13+
@endif
14+
15+
<div>
16+
<InnerBlocks template="{{ $block->template }}" />
1517
</div>
18+
19+
@unless ($block->preview)
20+
</div>
21+
@endunless

0 commit comments

Comments
 (0)