Skip to content

Commit

Permalink
Improve styling for short pills
Browse files Browse the repository at this point in the history
  • Loading branch information
elsmr committed Aug 15, 2024
1 parent 7f928a4 commit ca73965
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/editor-ui/src/components/RunDataSchema.vue
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ watch(
.innerSchema {
min-height: 0;
min-width: 0;
> div {
margin-bottom: var(--spacing-xs);
Expand Down
3 changes: 2 additions & 1 deletion packages/editor-ui/src/components/RunDataSchemaItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ const getIconBySchemaType = (type: Schema['type']): string => {
gap: var(--spacing-2xs);
align-items: baseline;
flex-grow: 1;
min-width: 0;
}
.sub {
Expand All @@ -213,6 +214,7 @@ const getIconBySchemaType = (type: Schema['type']): string => {
display: inline-flex;
flex-direction: column;
order: -1;
min-width: 0;
.innerSub > div:first-child {
margin-top: var(--spacing-2xs);
Expand Down Expand Up @@ -247,7 +249,6 @@ const getIconBySchemaType = (type: Schema['type']): string => {
background-color: var(--color-background-xlight);
font-size: var(--font-size-2xs);
color: var(--color-text-dark);
min-width: 0;
max-width: 50%;
path {
Expand Down

0 comments on commit ca73965

Please sign in to comment.