From: Alexander Ebert Date: Wed, 17 Apr 2019 18:04:14 +0000 (+0200) Subject: Improved the UI/UX of the package search X-Git-Tag: 5.2.0_Alpha_1~122^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3994bcc71ad905ffed7cf4ee67c99f621bf5af6f;p=GitHub%2FWoltLab%2FWCF.git Improved the UI/UX of the package search --- diff --git a/wcfsetup/install/files/acp/style/layout.scss b/wcfsetup/install/files/acp/style/layout.scss index 81b75e6a8d..b0ced58e06 100644 --- a/wcfsetup/install/files/acp/style/layout.scss +++ b/wcfsetup/install/files/acp/style/layout.scss @@ -464,3 +464,62 @@ $wcfAcpSubMenuWidth: 300px; text-decoration: underline; } } + +/* Search for Packages */ +.packageSearchName { + @include wcfFontHeadline; + @include wcfFontBold; +} + +.packageSearchVersion { + color: $wcfContentDimmedText; + font-weight: 400; + padding-left: 5px; +} + +.packageSearchPackage { + color: $wcfContentDimmedText; + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + font-weight: 400; + + @include wcfFontSmall; +} + +#packageSearchResultContainer { + &:not([data-status="idle"]) .packageSearchStatusIdle { + display: none; + } + + &:not([data-status="loading"]) .packageSearchStatusLoading { + display: none; + } + + &:not([data-status="noResults"]) .packageSearchStatusNoResults { + display: none; + } + + &:not([data-status="refreshDatabase"]) .packageSearchStatusRefreshDatabase { + display: none; + } + + &:not([data-status="showResults"]) { + #packageSearchResultCounter, + #packageSearchResultList { + display: none; + } + } +} + +.packageSearchStatus { + align-items: center; + display: flex; + flex-direction: column; + justify-content: center; + min-height: 120px; +} + +.packageSearchStatusLabel { + margin-top: 10px; + + @include wcfFontHeadline; +} diff --git a/wcfsetup/install/files/acp/templates/packageSearchResultList.tpl b/wcfsetup/install/files/acp/templates/packageSearchResultList.tpl index 823d1c7d9b..976964941a 100644 --- a/wcfsetup/install/files/acp/templates/packageSearchResultList.tpl +++ b/wcfsetup/install/files/acp/templates/packageSearchResultList.tpl @@ -4,7 +4,6 @@ {lang}wcf.acp.package.name{/lang} {lang}wcf.acp.package.author{/lang} - {lang}wcf.acp.package.version{/lang} {lang}wcf.acp.package.license{/lang} {lang}wcf.acp.package.packageDate{/lang} @@ -21,14 +20,11 @@ {event name='buttons'} - {$package->packageName} - {if $package->authorURL}{$package->author}{else}{$package->author}{/if} - - {$package->getAccessibleVersion()->packageVersion} - {*if $package->getAccessibleVersion()->packageUpdateVersionID != $package->getLatestVersion()->packageUpdateVersionID} - - {/if*} + +
{$package->packageName} {$package->getAccessibleVersion()->packageVersion}
+ {$package->package} + {if $package->authorURL}{$package->author}{else}{$package->author}{/if} {if $package->getAccessibleVersion()->licenseURL}{$package->getAccessibleVersion()->license}{else}{$package->getAccessibleVersion()->license}{/if} {@$package->getAccessibleVersion()->packageDate|time} diff --git a/wcfsetup/install/files/acp/templates/packageStartInstall.tpl b/wcfsetup/install/files/acp/templates/packageStartInstall.tpl index 45ff40e570..3c4b55e793 100644 --- a/wcfsetup/install/files/acp/templates/packageStartInstall.tpl +++ b/wcfsetup/install/files/acp/templates/packageStartInstall.tpl @@ -6,13 +6,13 @@ {include file='header'} @@ -38,32 +38,38 @@ {include file='formError'}
-
+

{lang}wcf.acp.package.search{/lang}

-
-
-
-
-
-
-
-
-
+
- - {lang}wcf.acp.package.search.package.description{/lang} + + {lang}wcf.acp.package.search.input.description{/lang}
- -
- -
-