diff --git a/editor/inspector/assets/fbx/event-editor/event-item.js b/editor/inspector/assets/fbx/event-editor/event-item.js index e3e17db8e4..65c525958c 100644 --- a/editor/inspector/assets/fbx/event-editor/event-item.js +++ b/editor/inspector/assets/fbx/event-editor/event-item.js @@ -8,7 +8,7 @@ const defaultParams = { exports.template = /* html */`
- +
header { display: flex; justify-content: space-between; - height: 24px; + height: 20px; background: var(--color-normal-fill-emphasis); - padding: 5px; + padding: 2px 4px; } #event-editor > .header .name { - margin: 0 5px; + margin: 0 4px; } #event-editor > .header .dirty { color: var(--color-focus-fill); margin: 0 2px; } #event-editor > .functions { - padding: 10px; + padding: 4px; overflow-y: auto; flex: 1; height: 100%; @@ -200,7 +200,6 @@ ui-icon { #event-editor > .functions .line { display: flex; justify-content: space-between; - padding: 0 8px; flex: 1; background: unset; } @@ -210,9 +209,6 @@ ui-icon { #event-editor > .functions .line .name { min-width: 8px; } - #event-editor > .functions .line > * { - margin-right: 5px; - } #event-editor > .functions .line .operate { visibility: hidden; } @@ -222,19 +218,14 @@ ui-icon { #event-editor > .functions .header ui-input { background-color: transparent; border-color: transparent; - line-height: 18px; } #event-editor > .functions .header ui-input:hover { background-color: var(--color-normal-fill-emphasis); } - #event-editor > .functions > * { - margin-top: 10px; - } #event-editor ui-input, #event-editor ui-checkbox, #event-editor ui-num-input { width: 100%; - height: 25px; } #event-editor ui-section { width: 100%; @@ -245,11 +236,10 @@ ui-icon { } #event-editor .tools { display: flex; - border-bottom: 1px solid; - padding: 10px 0; + padding: 4px 0; } #event-editor .tools ui-icon { - margin: 0 5px; + margin: 0 4px; } #event-editor .params { border: 1px rgba(136, 136, 136, 0.35) dashed; diff --git a/editor/inspector/components/particle-system.js b/editor/inspector/components/particle-system.js index 6c8d2b0272..2ff52f909a 100644 --- a/editor/inspector/components/particle-system.js +++ b/editor/inspector/components/particle-system.js @@ -36,7 +36,7 @@ exports.template = /* html*/`
- + @@ -51,7 +51,7 @@ exports.template = /* html*/` Regenerate bounding box - + @@ -77,7 +77,7 @@ exports.template = /* html*/` - + @@ -105,9 +105,9 @@ exports.template = /* html*/` - - - + + @@ -120,7 +120,7 @@ exports.template = /* html*/` - @@ -132,11 +132,11 @@ exports.template = /* html*/` - - - @@ -151,7 +151,7 @@ exports.template = /* html*/` - @@ -169,7 +169,7 @@ exports.template = /* html*/` - +
diff --git a/editor/inspector/components/widget.js b/editor/inspector/components/widget.js index 82cc2a65d5..ac44f97935 100644 --- a/editor/inspector/components/widget.js +++ b/editor/inspector/components/widget.js @@ -7,6 +7,8 @@ module.paths.push(join(Editor.App.path, 'node_modules')); const Vue = require('vue/dist/vue.min.js'); const propUtils = require('../utils/prop'); +const cssMediaWidth = 340; + exports.template = `