summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorKaushalya Mandaliya <kma@odoo.com>2019-07-30 13:35:07 +0000
committerKaushalya Mandaliya <kma@odoo.com>2019-08-05 10:26:07 +0000
commit9b9780e17b83ac120dac855529bf1e3617d4879d (patch)
tree889609905f93a43677bf65c42180c91b8fc2e84b /addons/web/static/src
parentbf2b11a232b83ef0a9c7fdc0fd8ce9891d195ec1 (diff)
[IMP] web: show avatar correctly even when rectangle image is used
Before this commit, In top-right corner, the avatar that is being shown doesn't correctly look like a circle if the shape of the avatar is rectangle. After this commit, The avatar appears in the top-right corner will be shown in correct circle shape, irrelevant of the image is square or not. task-2042276 closes: #35265 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/scss/navbar.scss4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web/static/src/scss/navbar.scss b/addons/web/static/src/scss/navbar.scss
index 367a374812d..5f60a3271df 100644
--- a/addons/web/static/src/scss/navbar.scss
+++ b/addons/web/static/src/scss/navbar.scss
@@ -159,7 +159,9 @@ body.o_is_superuser .o_menu_systray {
}
.oe_topbar_avatar {
- height: 17px;
+ height: 26px;
+ width: 26px;
+ object-fit: cover;
transform: translateY(-2px);
}
}