Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #24187: Users cards are not evenly aligned and leave some blank space #654

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions user-management/src/main/elm/sources/View.elm
Expand Up @@ -292,12 +292,12 @@ displayUsersConf model u =
, newUserMenu
, panel
]
, div [ class "col-xs-12 user-list" ][ div [ class "row " ] users ]
, div [ class "col-xs-12" ][ div [ class "row user-list" ] users ]
]

displayUser : User -> Html Msg
displayUser user =
div [class "user-card-wrapper", onClick (ActivePanelSettings user)]
div [class "user-card-wrapper col-xs-6 col-md-4 col-lg-3", onClick (ActivePanelSettings user)]
[
div [class "user-card"]
[
Expand Down
Expand Up @@ -44,6 +44,12 @@
font-size : 14px;
}

.user-list {
display : flex;
flex-wrap : wrap;
justify-content: flex-start;
}

.user-card {
float : left;
width : 49%;
Expand All @@ -52,7 +58,7 @@
border-line : 2px;
padding-bottom : 10px;
border-radius : 8px;
width : 300px;
width : 100%;
background : #fff;
text-align : center;
box-shadow : 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
Expand All @@ -64,7 +70,8 @@
}

.user-card-wrapper {
cursor:pointer;
width : 300px;
cursor : pointer;
}

.user-card-inner {
Expand All @@ -88,7 +95,6 @@ h3 {
color : #3a3a3a;
padding-bottom : 15px;
word-wrap : break-word;
width : 260px;
text-align : center;
margin-left : auto;
margin-right : auto;
Expand Down