Fix broken visibility selector styles.

This commit is contained in:
Nicolas Perriault 2017-05-03 17:24:31 +02:00
parent e9ce22571f
commit 1403ee12fe
No known key found for this signature in database
GPG Key ID: DA5E4C83904F7A2A
4 changed files with 7 additions and 7 deletions

View File

@ -316,7 +316,7 @@ body {
cursor: default;
}
.btn-group-justified .btn-group:nth-child(2) {
.draft-actions .btn-group:nth-child(2) {
width: .5%;
min-width: 30px;
}

View File

@ -74,7 +74,7 @@ icon name =
i [ class <| "glyphicon glyphicon-" ++ name ] []
justifiedButtonGroup : List (Html Msg) -> Html Msg
justifiedButtonGroup buttons =
div [ class "btn-group btn-group-justified" ] <|
justifiedButtonGroup : String -> List (Html Msg) -> Html Msg
justifiedButtonGroup cls buttons =
div [ class <| "btn-group btn-group-justified " ++ cls ] <|
List.map (\b -> div [ class "btn-group" ] [ b ]) buttons

View File

@ -128,7 +128,7 @@ visibilitySelector { visibility } =
]
[ Common.icon i, text " ", text v ]
)
|> Common.justifiedButtonGroup
|> Common.justifiedButtonGroup "draft-visibilities"
draftView : Model -> Html Msg
@ -256,7 +256,7 @@ draftView ({ draft, currentUser } as model) =
, text " This post is NSFW"
]
]
, Common.justifiedButtonGroup
, Common.justifiedButtonGroup "draft-actions"
[ button
[ type_ "button"
, class "btn btn-default"

View File

@ -121,7 +121,7 @@ notificationFilterView filter =
]
[ Common.icon iconName ]
in
Common.justifiedButtonGroup
Common.justifiedButtonGroup "notification-filters"
[ filterBtn "All notifications" "asterisk" NotificationAll
, filterBtn "Mentions" "share-alt" NotificationOnlyMentions
, filterBtn "Boosts" "fire" NotificationOnlyBoosts