From a813bd8088414dffe55122d2c0f8b4188d44cd67 Mon Sep 17 00:00:00 2001 From: Stanislav Romanov Date: Sat, 10 Sep 2022 11:34:03 +0300 Subject: [PATCH] Fix wrong method for updating some settings --- app/components/button.js | 8 ++++---- app/components/index-setting.hbs | 13 +++++++++---- app/components/index-setting.js | 7 +++---- app/components/monaco-editor.js | 2 +- app/models/index.js | 6 +++++- 5 files changed, 22 insertions(+), 14 deletions(-) diff --git a/app/components/button.js b/app/components/button.js index 8a0dc01..0235ec4 100644 --- a/app/components/button.js +++ b/app/components/button.js @@ -7,9 +7,9 @@ import { on } from '@ember/modifier'; import eq from '../helpers/eq'; export const sizes = { - sm: 'text-sm py-0.5', - md: 'px-3 py-2', - lg: 'px-4 py-3', + sm: 'w-20 text-sm px-2.5 py-1', + md: 'w-24 px-3 py-2', + lg: 'w-24 px-4 py-3', }; export const iconSizes = { @@ -29,7 +29,7 @@ export default class ButtonComponent extends Component { disabled={{this.disabled}} type={{this.type}} class=" - inline-flex items-center justify-center w-24 min-w-min + inline-flex items-center justify-center min-w-min {{get sizes this.size}} {{get styles this.style}} " diff --git a/app/components/index-setting.hbs b/app/components/index-setting.hbs index 56939c2..0cc2925 100644 --- a/app/components/index-setting.hbs +++ b/app/components/index-setting.hbs @@ -1,13 +1,18 @@ -