Skip to content

Commit

Permalink
fix: DES-2766 app with 1 variant needs diff list (#1232)
Browse files Browse the repository at this point in the history
* fix: DES-2766 app with 1 variant needs diff list

* fix: DES-2766 more padding (designer request)
  • Loading branch information
wesleyboar authored May 7, 2024
1 parent 77b5464 commit d761331
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{% if listing|length == 1 %}
<section class="s-app-version-list">
<h2>Already know everything?</h2>
{% for variant in listing %}
<a class="btn btn-success" href="{{variant.href}}">Get Started</a>
{% endfor %}
</section>
{% else %}
<section class="s-app-version-list">
<h2>Select a Version</h2>
{% for variant in listing %}
Expand All @@ -8,3 +16,4 @@ <h3>{{variant.label}}</h3>
</article>
{% endfor %}
</section>
{% endif %}
4 changes: 4 additions & 0 deletions designsafe/static/styles/app-version-list.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
background-color: #F4F4F4;
padding: 20px;
}
.s-app-version-list:not(:has(article)) {
text-align: center;
padding: 60px;
}

/* List Title */
.s-app-version-list > h2 {
Expand Down

0 comments on commit d761331

Please sign in to comment.