Skip to content
Snippets Groups Projects
Commit 9321ff1d authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Rework welcome activity list padding a bit

Group activity names and descriptions so it's mroe clear what belongs together
parent f56262d1
No related branches found
No related tags found
No related merge requests found
...@@ -39,9 +39,9 @@ class AppShellWelcome extends ScopedElementsMixin(LitElement) { ...@@ -39,9 +39,9 @@ class AppShellWelcome extends ScopedElementsMixin(LitElement) {
${commonStyles.getThemeCSS()} ${commonStyles.getThemeCSS()}
${commonStyles.getGeneralCSS()} ${commonStyles.getGeneralCSS()}
h2 { margin: inherit; } p { line-height: 1.8em }
p { margin: 0 0 10px 0; } .item {padding-top: 0.5em;}
div.item { margin: 30px 0; } .description {padding-left: 2em;}
`; `;
} }
...@@ -56,14 +56,15 @@ class AppShellWelcome extends ScopedElementsMixin(LitElement) { ...@@ -56,14 +56,15 @@ class AppShellWelcome extends ScopedElementsMixin(LitElement) {
itemTemplates.push(html` itemTemplates.push(html`
<div class="item"> <div class="item">
<h2>${data.name[this.lang]}</h2> <h2>${data.name[this.lang]}</h2>
${data.description[this.lang]} <p class="description">${data.description[this.lang]}</p>
</div>`); </div>`);
} }
} }
return html` return html`
<p>${i18n.t('welcome.headline', {appname: app.topic.name[this.lang]})}</p> <p>${i18n.t('welcome.headline', {appname: app.topic.name[this.lang]})}</p>
<p>${app.topic.description[this.lang]}</p> <p>${app.topic.description[this.lang] }</p>
<br>
${itemTemplates} ${itemTemplates}
`; `;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment