Skip to content

Commit

Permalink
Merge pull request #9970 from nextcloud/users-line-height-fix
Browse files Browse the repository at this point in the history
Fixed multi line in users list
  • Loading branch information
MorrisJobke authored Jun 25, 2018
2 parents 587d7cc + ab22ffa commit e3be9ef
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
24 changes: 24 additions & 0 deletions settings/css/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1463,10 +1463,34 @@ doesnotexist:-o-prefocus, .strengthify-wrapper {
display: block !important;
}
}
/* inputs like mail, username, password */
&:not(.userActions) > input:not([type='submit']) {
width: 100%;
min-width: 0;
}
&.name {
word-break: break-all;
}
&.displayName,
&.mailAddress {
> input {
text-overflow: ellipsis;
}
}
&.name,
&.storageLocation {
/* better multi-line visual */
line-height: 1.3em;
max-height: 2.6em;
overflow : hidden;
/* not supported by all browsers
so we keep the overflow hidden
as a fallback */
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
&.quota {
.multiselect--active + progress {
display: none;
Expand Down
2 changes: 1 addition & 1 deletion settings/js/settings-vue.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions settings/src/components/userList/userRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
:srcset="generateAvatar(user.id, 64)+' 2x, '+generateAvatar(user.id, 128)+' 4x'"
v-if="!loading.delete && !loading.disable">
</div>
<!-- dirty hack to ellipsis on two lines -->
<div class="name">{{user.id}}</div>
<form class="displayName" :class="{'icon-loading-small': loading.displayName}" v-on:submit.prevent="updateDisplayName">
<input :id="'displayName'+user.id+rand" type="text"
Expand Down

0 comments on commit e3be9ef

Please sign in to comment.