Skip to content

Commit

Permalink
fix(ObjectBase): make input width fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
DakEnviy committed Sep 5, 2023
1 parent 9b4b6c4 commit 16b2f04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/lib/kit/components/Inputs/ObjectBase/ObjectBase.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
display: flex;

& > .#{$ns}use-search {
flex: auto;
width: 150px;
margin-bottom: 0;
margin-right: 8px;

Expand Down
10 changes: 5 additions & 5 deletions src/stories/ObjectInline.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ export default {
const baseSpec: ObjectSpec = {
type: SpecTypes.Object,
properties: {
gender: {
type: {
type: SpecTypes.String,
enum: ['male', 'female', 'other'],
enum: ['first', 'second', 'third'],
viewSpec: {
type: 'select',
placeholder: 'Choose gender',
placeholder: 'Choose type',
layout: 'transparent',
layoutTitle: 'Gender',
layoutTitle: 'Type',
},
},
name: {
Expand All @@ -41,7 +41,7 @@ const baseSpec: ObjectSpec = {
},
};

const value = {gender: 'other', name: 'Foo'};
const value = {type: 'first', name: 'Foo'};

const excludeOptions = [
'description',
Expand Down

0 comments on commit 16b2f04

Please sign in to comment.