Compare commits
No commits in common. "2c99d10075f3e9ce7bd35c7d388411e10ad83348" and "56878533f464686110ebca4eaffbf0b023ca8cef" have entirely different histories.
2c99d10075
...
56878533f4
@ -69,24 +69,7 @@ roomListElementView s jr =
|
|||||||
let
|
let
|
||||||
name = Maybe.withDefault "<No Name>" <| roomName jr
|
name = Maybe.withDefault "<No Name>" <| roomName jr
|
||||||
in
|
in
|
||||||
div [ class "room-link-wrapper" ]
|
a [ href <| roomUrl s ] [ text name ]
|
||||||
[ a [ href <| roomUrl s ] [ text name ]
|
|
||||||
, roomNotificationCountView jr.unreadNotifications
|
|
||||||
]
|
|
||||||
|
|
||||||
roomNotificationCountView : Maybe UnreadNotificationCounts -> Html Msg
|
|
||||||
roomNotificationCountView ns =
|
|
||||||
let
|
|
||||||
spanNumber = case Maybe.andThen .notificationCount ns of
|
|
||||||
Nothing -> ""
|
|
||||||
Just 0 -> ""
|
|
||||||
Just i -> String.fromInt i
|
|
||||||
spanSuffix = case Maybe.andThen .highlightCount ns of
|
|
||||||
Nothing -> ""
|
|
||||||
Just 0 -> ""
|
|
||||||
Just i -> "!"
|
|
||||||
in
|
|
||||||
span [ class "notification-count" ] [ text (spanNumber ++ spanSuffix) ]
|
|
||||||
|
|
||||||
loginView : Model -> Html Msg
|
loginView : Model -> Html Msg
|
||||||
loginView m = div [ class "login-wrapper" ]
|
loginView m = div [ class "login-wrapper" ]
|
||||||
|
@ -89,7 +89,7 @@ div.base-wrapper {
|
|||||||
display: flex;
|
display: flex;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
> div {
|
div {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
@ -100,15 +100,9 @@ div.base-wrapper {
|
|||||||
*/
|
*/
|
||||||
div.rooms-wrapper {
|
div.rooms-wrapper {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
|
||||||
|
|
||||||
div.room-link-wrapper {
|
a {
|
||||||
whitespace: nowrap;
|
display: block;
|
||||||
display: flex;
|
|
||||||
padding: 0px;
|
|
||||||
|
|
||||||
span, a {
|
|
||||||
margin-right: 5px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -147,7 +141,6 @@ div.events-wrapper {
|
|||||||
table.events-table {
|
table.events-table {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
table-layout: fixed;
|
|
||||||
|
|
||||||
td {
|
td {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
@ -155,8 +148,7 @@ table.events-table {
|
|||||||
}
|
}
|
||||||
|
|
||||||
td:nth-child(1) {
|
td:nth-child(1) {
|
||||||
width: 10%;
|
width: 0px;
|
||||||
max-width: 100px;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -173,9 +165,8 @@ span.sender-wrapper {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
max-width: 100px;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: hidden;
|
|
||||||
vertical-align: bottom; /* Fix for overflow changing element height */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user