Fix wrong scrolling behavior for account timeline.
This commit is contained in:
parent
3ea6aaade2
commit
cfe0937a01
@ -56,6 +56,10 @@ body {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.timeline .list-group {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.status, .follow-profile, .current-user {
|
.status, .follow-profile, .current-user {
|
||||||
min-height: 50px;
|
min-height: 50px;
|
||||||
clear: both;
|
clear: both;
|
||||||
|
72
src/View.elm
72
src/View.elm
@ -204,41 +204,43 @@ statusView context ({ account, content, media_attachments, reblog, mentions } as
|
|||||||
|
|
||||||
accountTimelineView : Mastodon.Model.Account -> List Mastodon.Model.Status -> String -> String -> Html Msg
|
accountTimelineView : Mastodon.Model.Account -> List Mastodon.Model.Status -> String -> String -> Html Msg
|
||||||
accountTimelineView account statuses label iconName =
|
accountTimelineView account statuses label iconName =
|
||||||
div [ class "col-md-3" ]
|
div [ class "col-md-3 column" ]
|
||||||
[ div [ class "panel panel-default" ]
|
[ div [ class "panel panel-default" ]
|
||||||
[ closeablePanelheading iconName label ClearOpenedAccount
|
[ closeablePanelheading iconName label ClearOpenedAccount
|
||||||
, div [ class "account-detail", style [ ( "background-image", "url('" ++ account.header ++ "')" ) ] ]
|
, div [ class "timeline" ]
|
||||||
[ div [ class "opacity-layer" ]
|
[ div [ class "account-detail", style [ ( "background-image", "url('" ++ account.header ++ "')" ) ] ]
|
||||||
[ img [ src account.avatar ] []
|
[ div [ class "opacity-layer" ]
|
||||||
, span [ class "account-display-name" ] [ text account.display_name ]
|
[ img [ src account.avatar ] []
|
||||||
, span [ class "account-username" ] [ text ("@" ++ account.username) ]
|
, span [ class "account-display-name" ] [ text account.display_name ]
|
||||||
, span [ class "account-note" ] (formatContent account.note [])
|
, span [ class "account-username" ] [ text ("@" ++ account.username) ]
|
||||||
|
, span [ class "account-note" ] (formatContent account.note [])
|
||||||
|
]
|
||||||
]
|
]
|
||||||
|
, div [ class "row account-infos" ]
|
||||||
|
[ div [ class "col-md-4" ]
|
||||||
|
[ text "Statuses"
|
||||||
|
, br [] []
|
||||||
|
, text <| toString account.statuses_count
|
||||||
|
]
|
||||||
|
, div [ class "col-md-4" ]
|
||||||
|
[ text "Following"
|
||||||
|
, br [] []
|
||||||
|
, text <| toString account.following_count
|
||||||
|
]
|
||||||
|
, div [ class "col-md-4" ]
|
||||||
|
[ text "Followers"
|
||||||
|
, br [] []
|
||||||
|
, text <| toString account.followers_count
|
||||||
|
]
|
||||||
|
]
|
||||||
|
, ul [ class "list-group" ] <|
|
||||||
|
List.map
|
||||||
|
(\s ->
|
||||||
|
li [ class "list-group-item status" ]
|
||||||
|
[ statusView "account" s ]
|
||||||
|
)
|
||||||
|
statuses
|
||||||
]
|
]
|
||||||
, div [ class "row account-infos" ]
|
|
||||||
[ div [ class "col-md-4" ]
|
|
||||||
[ text "Statuses"
|
|
||||||
, br [] []
|
|
||||||
, text <| toString account.statuses_count
|
|
||||||
]
|
|
||||||
, div [ class "col-md-4" ]
|
|
||||||
[ text "Following"
|
|
||||||
, br [] []
|
|
||||||
, text <| toString account.following_count
|
|
||||||
]
|
|
||||||
, div [ class "col-md-4" ]
|
|
||||||
[ text "Followers"
|
|
||||||
, br [] []
|
|
||||||
, text <| toString account.followers_count
|
|
||||||
]
|
|
||||||
]
|
|
||||||
, ul [ class "list-group timeline" ] <|
|
|
||||||
List.map
|
|
||||||
(\s ->
|
|
||||||
li [ class "list-group-item status" ]
|
|
||||||
[ statusView "account" s ]
|
|
||||||
)
|
|
||||||
statuses
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -320,7 +322,7 @@ statusEntryView context className status =
|
|||||||
|
|
||||||
timelineView : String -> String -> String -> List Mastodon.Model.Status -> Html Msg
|
timelineView : String -> String -> String -> List Mastodon.Model.Status -> Html Msg
|
||||||
timelineView label iconName context statuses =
|
timelineView label iconName context statuses =
|
||||||
div [ class "col-md-3" ]
|
div [ class "col-md-3 column" ]
|
||||||
[ div [ class "panel panel-default" ]
|
[ div [ class "panel panel-default" ]
|
||||||
[ a
|
[ a
|
||||||
[ href "", onClickWithPreventAndStop <| ScrollColumn context ]
|
[ href "", onClickWithPreventAndStop <| ScrollColumn context ]
|
||||||
@ -396,7 +398,7 @@ notificationEntryView notification =
|
|||||||
|
|
||||||
notificationListView : List Mastodon.Model.NotificationAggregate -> Html Msg
|
notificationListView : List Mastodon.Model.NotificationAggregate -> Html Msg
|
||||||
notificationListView notifications =
|
notificationListView notifications =
|
||||||
div [ class "col-md-3" ]
|
div [ class "col-md-3 column" ]
|
||||||
[ div [ class "panel panel-default" ]
|
[ div [ class "panel panel-default" ]
|
||||||
[ a
|
[ a
|
||||||
[ href "", onClickWithPreventAndStop <| ScrollColumn "notifications" ]
|
[ href "", onClickWithPreventAndStop <| ScrollColumn "notifications" ]
|
||||||
@ -578,7 +580,7 @@ threadView thread =
|
|||||||
)
|
)
|
||||||
status
|
status
|
||||||
in
|
in
|
||||||
div [ class "col-md-3" ]
|
div [ class "col-md-3 column" ]
|
||||||
[ div [ class "panel panel-default" ]
|
[ div [ class "panel panel-default" ]
|
||||||
[ closeablePanelheading "list" "Thread" CloseThread
|
[ closeablePanelheading "list" "Thread" CloseThread
|
||||||
, ul [ class "list-group timeline" ] <|
|
, ul [ class "list-group timeline" ] <|
|
||||||
@ -604,7 +606,7 @@ optionsView model =
|
|||||||
|
|
||||||
sidebarView : Model -> Html Msg
|
sidebarView : Model -> Html Msg
|
||||||
sidebarView model =
|
sidebarView model =
|
||||||
div [ class "col-md-3" ]
|
div [ class "col-md-3 column" ]
|
||||||
[ draftView model
|
[ draftView model
|
||||||
, optionsView model
|
, optionsView model
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user