From c71878ef6b8deaf96282ed2912556f5e97fb170e Mon Sep 17 00:00:00 2001 From: abias Date: Sun, 4 Jun 2023 22:31:51 -0400 Subject: [PATCH] Fix instance add/remove buttons --- src/shared/components/home/site-form.tsx | 2 ++ webpack.config.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/components/home/site-form.tsx b/src/shared/components/home/site-form.tsx index e6715359..4811bbbf 100644 --- a/src/shared/components/home/site-form.tsx +++ b/src/shared/components/home/site-form.tsx @@ -689,6 +689,7 @@ export class SiteForm extends Component { type="button" className="btn btn-sm bg-success ml-2" onClick={linkEvent(key, this.handleAddInstance)} + style={"width: 2rem; height: 2rem;"} tabIndex={ -1 /* Making this untabble because handling enter key in text input makes keyboard support for this button redundant */ } @@ -710,6 +711,7 @@ export class SiteForm extends Component { id={instance} type="button" className="btn btn-sm bg-danger" + style={"width: 2rem; height: 2rem;"} onClick={linkEvent( { key, instance }, this.handleRemoveInstance diff --git a/webpack.config.js b/webpack.config.js index 6a7c92a1..130b1f25 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -94,7 +94,7 @@ const createClientConfig = (_env, mode) => { plugins: [ ...base.plugins, new ServiceWorkerPlugin({ - enableInDevelopment: true, + enableInDevelopment: mode !== "development", workbox: { modifyURLPrefix: { "/": "/static/",