Merge pull request #1173 from eikek/small-ui-improvements

Improve new job count bubble
This commit is contained in:
mergify[bot] 2021-11-13 19:57:30 +00:00 committed by GitHub
commit 7088185e38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -30,7 +30,7 @@ case class JdbcConfig(url: LenientUri, user: String, password: String) {
} }
override def toString: String = override def toString: String =
s"JdbcConfig($url, $user, ***)" s"JdbcConfig(${url.asString}, $user, ***)"
} }
object JdbcConfig { object JdbcConfig {

View File

@ -75,8 +75,8 @@ topNavUser auth model =
[ a [ a
[ class S.infoMessageBase [ class S.infoMessageBase
, class "my-2 px-1 py-1 rounded-lg inline-block hover:opacity-50" , class "my-2 px-1 py-1 rounded-lg inline-block hover:opacity-50"
, classList [ ( "hidden", not model.showNewItemsArrived ) ] , classList [ ( "hidden", not model.showNewItemsArrived || model.page == HomePage ) ]
, href "#" , Page.href HomePage
, onClick ToggleShowNewItemsArrived , onClick ToggleShowNewItemsArrived
] ]
[ i [ class "fa fa-exclamation-circle mr-1" ] [] [ i [ class "fa fa-exclamation-circle mr-1" ] []
@ -266,11 +266,11 @@ dataMenu texts _ model =
[ i [ class "fa fa-cogs" ] [] [ i [ class "fa fa-cogs" ] []
, div , div
[ class "h-5 w-5 rounded-full text-xs px-1 py-1 absolute top-1 left-1 font-bold" [ class "h-5 w-5 rounded-full text-xs px-1 py-1 absolute top-1 left-1 font-bold"
, class "dark:bg-lightblue-500 dark:border-gray-50 dark:text-gray-800" , class "dark:bg-lightblue-500 dark:text-gray-200"
, class "bg-blue-500 text-gray-50" , class "bg-blue-500 text-gray-50"
, classList [ ( "hidden", model.jobsWaiting <= 0 ) ] , classList [ ( "hidden", model.jobsWaiting <= 0 ) ]
] ]
[ div [ class "-mt-0.5 ml-0.5" ] [ div [ class "-mt-0.5 mx-auto text-center" ]
[ text (String.fromInt model.jobsWaiting) [ text (String.fromInt model.jobsWaiting)
] ]
] ]
@ -317,7 +317,7 @@ dataMenu texts _ model =
class "fa fa-tachometer-alt w-6" class "fa fa-tachometer-alt w-6"
else else
class "fa fa-circle dark:text-lightblue-500 text-blue-500" class "fa fa-tachometer-alt w-6 animate-pulse dark:text-lightblue-500 text-blue-500"
] ]
[] []
, span [ class "ml-1" ] , span [ class "ml-1" ]