diff --git a/addons/mail/static/src/scss/attachment_box.scss b/addons/mail/static/src/scss/attachment_box.scss index a9aa6aec260..2fbff3c2386 100644 --- a/addons/mail/static/src/scss/attachment_box.scss +++ b/addons/mail/static/src/scss/attachment_box.scss @@ -1,8 +1,5 @@ .oe_chatter { - .btn.o_active_attach { - height: 300px; - } .o_mail_chatter_attachments { min-height: 50px; diff --git a/addons/mail/static/src/scss/chatter.scss b/addons/mail/static/src/scss/chatter.scss index 5b503966706..f34db2e00d8 100644 --- a/addons/mail/static/src/scss/chatter.scss +++ b/addons/mail/static/src/scss/chatter.scss @@ -1,75 +1,35 @@ -// Default chatter layout. -// Extended in enterprise by form_view.less to achieve the side-chatter .o_chatter { - width: 100%; - padding-top: 0!important; - .o_spinner { text-align: center; font-size: large; } .o_chatter_topbar { - height: $o-statusbar-height; - position: relative; - margin: $grid-gutter-width*0.5 0 0; - padding: 0; display: flex; + border-bottom: $nav-tabs-border-width solid transparent; - > .o_topbar_right_area { - border-bottom: 1px solid transparent; - position: relative; - float: right; - flex: 1 1 auto; - height: $o-statusbar-height; - - .o_chatter_button_attachment { - height: $o-statusbar-height; - float: right; - margin-right: 25px; - - .fa-paperclip, .o_chatter_attachment_button_count { - font-weight: bold; - } - } - .o_followers { - height: $o-statusbar-height; - border-bottom: 1px solid transparent; - flex: 0 1 auto; - } - } - > .btn { - height: $o-statusbar-height; - border: 1px solid transparent; - } .btn { @extend .text-nowrap; - padding-right: $btn-padding-x; - padding-left: $btn-padding-x; + margin-bottom: -$nav-tabs-border-width; + padding: $grid-gutter-width*0.25 - $nav-tabs-border-width $grid-gutter-width*0.5 $grid-gutter-width*0.25; + border-radius: $border-radius-sm $border-radius-sm 0 0; } + > .o_topbar_right_area { + display: flex; + margin-left: auto; + justify-content: flex-end; + } } &.o_chatter_composer_active .o_chatter_topbar { - > .btn, > .o_followers, > .o_topbar_right_area{ - border-radius: $border-radius-sm $border-radius-sm 0 0; - border-width: 0 0 1px; - border-bottom-color: gray('300'); + border-bottom-color: gray('300'); - &.o_active { - color: $o-brand-odoo; - background-color: theme-color('light'); - border-color: gray('300'); - border-width: 1px 1px 0; - } - } - } -} - -@include media-breakpoint-down(sm) { - .o_chatter .o_chatter_topbar > .o_topbar_right_area { - .o_chatter_button_attachment { - margin-right: initial; + .btn.o_active { + color: $o-brand-odoo; + background-color: theme-color('light'); + border: $nav-tabs-border-width solid gray('300'); + border-bottom-color: transparent; } } } diff --git a/addons/mail/static/src/scss/followers.scss b/addons/mail/static/src/scss/followers.scss index 86cbc38c82c..edb38cc133a 100644 --- a/addons/mail/static/src/scss/followers.scss +++ b/addons/mail/static/src/scss/followers.scss @@ -1,134 +1,90 @@ .o_followers { - float: right; - @include media-breakpoint-down(sm) { - display: none !important; // Hide the followers in mobile + display: flex; + justify-content: flex-end; + order: 1; + + &.o_field_widget { + margin-bottom: initial; } - .o_followers_actions { - position: relative; - float: right; + > .o_followers_title_box { + order: 1; + } - .dropdown-toggle { - opacity: 0.3; - border: none; + .o_followers_follow_button { + color: $body-color; + font-weight: bold; + text-align: right; + + .o_follow, .o_followers_unfollow, .o_followers_following { display: none; - - &:hover, &:focus, &[aria-expanded="true"] { - opacity: 1; - } - - > .fa { - font-size: inherit; - } - - &.o_followers_following { - display: block; - } } - &:hover .dropdown-toggle { - opacity: 1; + // when following, show 'following' + &.o_followers_following .o_followers_following { + display: initial; } - .o_followers_follow_button { - padding-right: 0; - color: $body-color; - font-weight: bold; - - .o_follow, .o_followers_unfollow, .o_followers_following { + // when following and hovering, show 'unfollow' + &.o_followers_following:hover { + .o_followers_following { display: none; } - // when following, show 'following' - &.o_followers_following .o_followers_following { - display: inline; - } - // when following and hovering, show 'unfollow' - &.o_followers_following:hover .o_followers_following { - display: none; - } - &.o_followers_following:hover .o_followers_unfollow { - display: inline; - } - // when not following show 'follow' - &.o_followers_notfollow .o_follow { - display: inline; - } - .fa { - &.fa-times { - color: theme-color('warning'); - } - &.fa-check { - color: theme-color('success'); - } + .o_followers_unfollow { + display: initial; } } - .o_subtype { - padding-left: 10px; + // when not following show 'follow' + &.o_followers_notfollow .o_follow { + display: initial; + } + + .fa { + &.fa-times { + color: theme-color('warning'); + } + + &.fa-check { + color: theme-color('success'); + } } } - .o_followers_title_box { - position: relative; - float: right; - margin-left: 25px; + .o_followers_list { + width: 20vh; + max-height: 50vh; + overflow: auto; + } - .dropdown-toggle { - .o_followers_count { - padding-right: 5px; - font-weight: bold; + .o_followers_title_box .dropdown-item.o_partner { + padding: 0; + display: flex; + align-items: center; + + .o_mail_redirect { + margin-right: auto; + color: $dropdown-link-color; + + img { + width: $o-mail-partner-avatar-size; } } - .o_followers_list { - font-size: small; - max-height: 50vh; // ancestor has size 33px - overflow: auto; + .btn { + padding: 0 $grid-gutter-width*0.25; + } - .o_partner { - position: relative; // required for old design compatibility + &.o_inactive { + .o_mail_redirect { + color: $gray-500; + font-style: italic; - > a { - max-width: 160px; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - height: $o-mail-partner-avatar-size; - padding: 3px $o-mail-partner-avatar-size + 8px; - } - > img { - @include o-position-absolute($top: 0, $left: 0); - width: $o-mail-partner-avatar-size; - } - .o_remove_follower { - @include o-position-absolute(6px, 5px); - cursor: pointer; - } - .o_edit_subtype { - @include o-position-absolute(6px, 18px); - cursor: pointer; - } - - &.o_inactive { - > a { - color: $gray-500; - font-style: italic; - } - > img { - opacity: 0.25; - } + img { + opacity: 0.25; } } - } } } - -// Edit subtypes in dialog -.modal .modal-body > ul { - padding-left: 0; - > li.o_subtype { - list-style: none; - } -} diff --git a/addons/mail/static/src/xml/followers.xml b/addons/mail/static/src/xml/followers.xml index 4cca8897638..75e9b9dee70 100644 --- a/addons/mail/static/src/xml/followers.xml +++ b/addons/mail/static/src/xml/followers.xml @@ -5,8 +5,8 @@ Followers, actions and subtypes in a record. --> -
-
+
+
-
-
- +
+