Skip to content

Commit

Permalink
Fixes role editing modal overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
frague committed Nov 24, 2016
1 parent 062829f commit ba33198
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 12 deletions.
5 changes: 5 additions & 0 deletions ui/app/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,11 @@ label {
}
}
}
.long-content {
max-height: 200px;
overflow-y: scroll;
overflow-x: hidden;
}
}
.modal-footer {
border: 0;
Expand Down
10 changes: 10 additions & 0 deletions ui/app/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -7662,6 +7662,11 @@ a.grid .grid-header .icon:focus {
.modal-errors form div.checkbox label {
text-transform: none;
}
.modal-errors .long-content {
max-height: 200px;
overflow-y: scroll;
overflow-x: hidden;
}
.modal-errors p:last-child {
margin-bottom: 0;
}
Expand All @@ -7684,6 +7689,11 @@ a.grid .grid-header .icon:focus {
.modal-body form div.checkbox label {
text-transform: none;
}
.modal-body .long-content {
max-height: 200px;
overflow-y: scroll;
overflow-x: hidden;
}
.modal-footer {
border: 0;
}
Expand Down
26 changes: 14 additions & 12 deletions ui/app/templates/roles.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,20 @@

<label>Permissions groups</label>

<div *ngFor="let group of permissions">
<h5>{{group.name}}</h5>
<div class="checkbox" *ngFor="let permission of group.permissions">
<label>
<input
type="checkbox"
[name]="group"
[value]="permission"
[checked]="getGroupPermission(group, permission)"
(click)="toggleGroupPermission(group, permission)">
{{permission}}
</label>
<div class="long-content">
<div *ngFor="let group of permissions">
<h5>{{group.name}}</h5>
<div class="checkbox" *ngFor="let permission of group.permissions">
<label>
<input
type="checkbox"
[name]="group"
[value]="permission"
[checked]="getGroupPermission(group, permission)"
(click)="toggleGroupPermission(group, permission)">
{{permission}}
</label>
</div>
</div>
</div>
</form>
Expand Down

0 comments on commit ba33198

Please sign in to comment.