0626提交

This commit is contained in:
WEB许何哲\xuhez
2023-06-26 17:35:55 +08:00
parent c81730d7ba
commit 65ec935a9f
4 changed files with 36 additions and 4 deletions

View File

@@ -38,6 +38,7 @@
],
'assets': {
'web.assets_backend': [
'code_backend_theme/static/src/js/chrome/myDropdown.js',
'code_backend_theme/static/src/xml/styles.xml',
'code_backend_theme/static/src/xml/top_bar.xml',
# 'code_backend_theme/static/src/xml/dropdown.xml',
@@ -51,6 +52,7 @@
'code_backend_theme/static/src/js/chrome/sidebar_menu.js',
'code_backend_theme/static/src/js/chrome/test.js',
'code_backend_theme/static/src/js/fields/colors.js',
],
'web.assets_frontend': [
'code_backend_theme/static/src/scss/login.scss',

View File

@@ -0,0 +1,11 @@
/** @odoo-module **/
import {Dropdown} from "@web/core/dropdown/dropdown"
var {patch} = require("web.utils")
patch(Dropdown.prototype, "Dropdown.DropdownJS", {
close() {
return this.changeStateAndNotify({open: true, groupIsOpen: true});
}
})

View File

@@ -31,7 +31,7 @@
padding-bottom: 5px !important;
}
.o-dropdown {
.sidebar_menu .o-dropdown {
padding-left: 25px;
padding-top: 8px;
padding-bottom: 0px;
@@ -94,7 +94,7 @@
background-color: unset !important;
}
.dropdown-menu .dropdown-item {
.sidebar_menu .dropdown-menu .dropdown-item {
padding-left: 103px !important;
}
@@ -115,7 +115,7 @@ svg:nth-of-type(1) {
//$caret-width: 80px;
//
.dropdown-toggle[aria-expanded="false"] :after {
.sidebar_menu .dropdown-toggle[aria-expanded="false"] :after {
display: inline-block;
width: 0;
height: 0;
@@ -128,7 +128,7 @@ svg:nth-of-type(1) {
border-left: $caret-width solid transparent;
}
.dropdown-toggle[aria-expanded="true"]:after {
.sidebar_menu .dropdown-toggle[aria-expanded="true"]:after {
display: inline-block;
width: 0;
height: 0;
@@ -142,3 +142,20 @@ svg:nth-of-type(1) {
border-bottom: $caret-width solid;
}
.text-truncate {
overflow: unset !important;
text-overflow: unset !important;
}
.o_list_controller {
width: 41px !important;
}
.o_main_navbar .dropdown-toggle {
height: 100% !important;
}
.MessagingMenuContainer {
display: flex;
align-items: center;
}

View File

@@ -67,7 +67,9 @@
</t>
</t>
</div>
<!-- <script type="module" src="/code_backend_theme/static/src/js/chrome/myDropdown.js"></script>-->
</xpath>
</t>
</templates>