diff --git a/package.json b/package.json index c55af0deb84e1..12c04f32d2ba5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "crawlab-ui", - "version": "0.6.0-16", + "version": "0.6.0-17", "private": false, "author": { "name": "Marvin Zhang", diff --git a/src/components/filter/FilterSelect.vue b/src/components/filter/FilterSelect.vue index d0cfe4333be8b..261972cf182a5 100644 --- a/src/components/filter/FilterSelect.vue +++ b/src/components/filter/FilterSelect.vue @@ -4,8 +4,10 @@ {{ label }} , }, @@ -58,10 +64,12 @@ export default defineComponent({ }); const onChange = (value: any) => { + if (value === '') return; emit('change', value); }; const onClear = () => { + internalModelValue.value = undefined; emit('change', undefined); }; @@ -90,4 +98,16 @@ export default defineComponent({ diff --git a/src/components/nav/NavActionGroup.vue b/src/components/nav/NavActionGroup.vue index fc33dca6dc516..17525b7be08af 100644 --- a/src/components/nav/NavActionGroup.vue +++ b/src/components/nav/NavActionGroup.vue @@ -20,21 +20,26 @@ export default defineComponent({ @import "../../styles/variables.scss"; .nav-action-group { - height: auto; + height: fit-content; display: flex; - align-items: center; + align-items: start; box-sizing: border-box; + flex-wrap: wrap; + position: relative; & + .nav-action-group { //padding-left: 10px; margin-left: 10px; + } - .border { - margin-left: -10px; - margin-right: 10px; - border-left: 1px solid $navActionsGroupBorderColor; - height: calc(100% - 20px); - } + .border { + position: absolute; + left: 0; + top: 10px; + margin-left: -10px; + margin-right: 10px; + border-left: 1px solid $navActionsGroupBorderColor; + height: calc(100% - 20px); } } diff --git a/src/components/nav/NavActionItem.vue b/src/components/nav/NavActionItem.vue index a8f463c8266f3..edb89fad98a3a 100644 --- a/src/components/nav/NavActionItem.vue +++ b/src/components/nav/NavActionItem.vue @@ -32,8 +32,9 @@ export default defineComponent({ .nav-action-item { margin: 10px 0; - height: auto; + height: fit-content; display: flex; + flex: 0 0 auto; align-items: center; color: $navActionsItemColor; diff --git a/src/components/nav/NavActions.vue b/src/components/nav/NavActions.vue index 5ca90b6412bb6..e42fadc967371 100644 --- a/src/components/nav/NavActions.vue +++ b/src/components/nav/NavActions.vue @@ -1,9 +1,9 @@