Skip to content

Commit

Permalink
Make sidebar form more usable
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Jul 29, 2021
1 parent 36aa4bc commit 7960ff8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/StyleWrapper/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ export const StyleSchema = () => ({
{
id: 'default',
title: 'Default',
fields: [],
},
{
id: 'presets',
title: 'Preset styles',
fields: ['style_name'],
},
{
Expand All @@ -18,11 +23,6 @@ export const StyleSchema = () => ({
title: 'Decorations',
fields: ['shadowDepth', 'shadowColor', 'borderRadius'],
},
{
id: 'decorations',
title: 'Decorations',
fields: ['shadowDepth', 'shadowColor', 'borderRadius'],
},
{
id: 'advanced',
title: 'Advanced',
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/StyleSelect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const StyleSelectWidget = (props) => {
className={cx({ active: style.id === value })}
>
<Card.Content>
<Item.Image size="tiny">{renderPreview(style)}</Item.Image>
<Item.Image>{renderPreview(style)}</Item.Image>
</Card.Content>
<Card.Content extra>{style.title}</Card.Content>
</Card>
Expand Down
4 changes: 4 additions & 0 deletions src/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
.style-select-widget {
.card {
cursor: pointer;

.extra.content {
padding: 0.4em !important;
}
}

.card.active {
Expand Down

0 comments on commit 7960ff8

Please sign in to comment.