1
0
mirror of https://github.com/bitwarden/web synced 2025-12-15 15:53:18 +00:00

border options for avatars

This commit is contained in:
Kyle Spearrin
2017-04-06 00:00:04 -04:00
parent 2798a05e8e
commit b27b4bef44
2 changed files with 8 additions and 2 deletions

View File

@@ -88,7 +88,9 @@ angular
'Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif',
round: attrs.round || 'true',
dynamic: attrs.dynamic || 'true',
class: attrs.avclass || ''
class: attrs.avclass || '',
border: attrs.avborder || 'false',
borderStyle: attrs.borderStyle || '3px solid white'
};
if (params.dynamic === 'true') {
@@ -127,6 +129,10 @@ angular
img.css('border-radius', '50%');
}
if (params.border === 'true') {
img.css('border', params.borderStyle);
}
if (params.class) {
img.addClass(params.class);
}