Skip to content

Commit

Permalink
Merge pull request #116 from Linaro/marcpe_staging
Browse files Browse the repository at this point in the history
Make version FROM consistent and move to first item ahead of category.
  • Loading branch information
marcpems authored Sep 25, 2024
2 parents a77ce0f + 2538c4b commit 78e4905
Show file tree
Hide file tree
Showing 5 changed files with 760 additions and 22 deletions.
17 changes: 9 additions & 8 deletions src/components/Projects/ApplicationDetails.astro
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ const { Content } = await render();
</div>

<ul class="flex flex-row flex-wrap gap-x-16 gap-y-6">
{
version_from && (
<li>
<b data-pagefind-ignore>Version From: </b>
<span data-pagefind-meta="version_from">{version_from}</span>
</li>
)
}

<li>
<b data-pagefind-ignore>Categories: </b>
{
Expand All @@ -84,14 +93,6 @@ const { Content } = await render();
)
}
</li>
{
version_from && (
<li>
<b data-pagefind-ignore>Version From: </b>
<span data-pagefind-meta="version_from">{version_from}</span>
</li>
)
}
{
() => {
if (link)
Expand Down
12 changes: 6 additions & 6 deletions src/components/Projects/ApplicationListing.astro
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ const url = `/applications/${slug}/`;
}
}
</p>


<p class="break-all text-orange-200">
<b>Version From:&nbsp;</b>
<span class="min-w-0">{data.version_from}</span>
</p>

<p class="px-3 flex flex-wrap">
<b>Categories: </b>
<span class="px-3 flex flex-wrap gap-1">
Expand All @@ -80,11 +85,6 @@ const url = `/applications/${slug}/`;
}
</span>
</p>

<p class="break-all text-orange-200">
<b>Version:&nbsp;</b>
<span class="min-w-0">{data.version_from}</span>
</p>
</div>
</div>
</article>
Expand Down
15 changes: 8 additions & 7 deletions src/components/Search/Results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ const Result = ({
</span>
</p>
</Show>

<Show when={type === "applications"}>
<p class="break-all text-orange-200">
<b>Version from:&nbsp;</b>
<span class="min-w-0">{project()?.meta.version_from}</span>
</p>
</Show>

<Show when={type === "applications"}>
<p class="flex gap-2 flex-wrap">
<b>Categories: </b>
Expand All @@ -130,13 +138,6 @@ const Result = ({
</p>
</Show>

<Show when={type === "applications"}>
<p class="break-all text-orange-200">
<b>Version:&nbsp;</b>
<span class="min-w-0">{project()?.meta.version_from}</span>
</p>
</Show>

<Show when={type === "games"}>
<p>
<b>Compatibility: </b>
Expand Down
2 changes: 1 addition & 1 deletion src/content/applications/DavinciResolve.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Davinci Resolve"
categories: ['creative']
compatibility: native
display_result: "Compatible"
version_from: "19"
version_from: "19.0.0"
featured: true
link: https://www.blackmagicdesign.com/products/davinciresolve/
icon: DavinciResolve.jfif
Expand Down
Loading

0 comments on commit 78e4905

Please sign in to comment.