Fix broken visibility selector styles.
This commit is contained in:
parent
e9ce22571f
commit
1403ee12fe
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user