Skip to content

Commit 591b633

Browse files
authored
fix: switch to proper layout for two-cols-header (#2264)
1 parent bfe619b commit 591b633

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

docs/builtin/layouts.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,10 @@ This shows on the left
214214
# Right
215215

216216
This shows on the right
217+
218+
<style>
219+
.two-cols-header {
220+
column-gap: 20px; /* Adjust the gap size as needed */
221+
}
222+
</style>
217223
```

packages/client/layouts/two-cols-header.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ This shows on the left
1313
This shows on the right
1414
::bottom::
1515
This shows at the bottom, aligned to the end (bottom) of the grid
16+
17+
<style>
18+
.two-cols-header {
19+
column-gap: 20px; /* Adjust the gap size as needed */
20+
}
21+
</style>
1622
```
1723
-->
1824

@@ -48,7 +54,7 @@ const props = defineProps({
4854
.two-cols-header {
4955
display: grid;
5056
grid-template-columns: repeat(2, 1fr);
51-
grid-template-rows: repeat(2, 1fr);
57+
grid-template-rows: auto 1fr auto;
5258
}
5359
5460
.col-header {

0 commit comments

Comments
 (0)