Skip to content

Commit e436dd5

Browse files
emmnullmanuel3108
andauthored
chore(create): add div with display: contents to library template (#773)
* Specify body wrapping div with 'display: contents' style Make the default app html consistent across project templates. * changeset Add a div with `display: contents` style to the library template. --------- Co-authored-by: Manuel <30698007+manuel3108@users.noreply.github.com>
1 parent b05c603 commit e436dd5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/hot-masks-rule.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"sv": patch
3+
---
4+
5+
chore(create): add div with `display: contents` to library template

packages/create/templates/library/src/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
%sveltekit.head%
88
</head>
99
<body data-sveltekit-preload-data="hover">
10-
<div>%sveltekit.body%</div>
10+
<div style="display: contents">%sveltekit.body%</div>
1111
</body>
1212
</html>

0 commit comments

Comments
 (0)