From 2ad947d4e1c6fff7a5f41f1c47504e1c8b69147b Mon Sep 17 00:00:00 2001 From: Artem Blazhko Date: Mon, 30 Dec 2024 13:00:08 +0200 Subject: [PATCH] Add default styles to "Enter" buttons (#1257) --- CHANGELOG.md | 1 + .../InstanceInformation.css | 12 ++++++ .../InstanceInformation.js | 13 ++++--- .../ItemInformation/ItemInformation.css | 12 ++++++ .../ItemInformation/ItemInformation.js | 13 ++++--- .../RequesterInformation.css | 12 ++++++ .../RequesterInformation.js | 39 ++++++++++--------- .../InstanceInformation.css | 9 +++++ .../InstanceInformation.js | 11 +++--- .../ItemInformation/ItemInformation.css | 9 +++++ .../ItemInformation/ItemInformation.js | 11 +++--- src/requests.css | 4 -- 12 files changed, 101 insertions(+), 45 deletions(-) create mode 100644 src/components/InstanceInformation/InstanceInformation.css create mode 100644 src/components/ItemInformation/ItemInformation.css create mode 100644 src/components/RequesterInformation/RequesterInformation.css diff --git a/CHANGELOG.md b/CHANGELOG.md index 61da1a995..dee18146c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ * Add "Retrieval service point" filter. Refs UIREQ-1190. * Include `Retrieval service point` column in csv exports. Refs UIREQ-1191. * Add icons to requests action menu. Refs UIREQ-1116. +* Revise "Enter" button on New request page. Refs UIREQ-1114. ## [11.0.2] (https://github.com/folio-org/ui-requests/tree/v11.0.2) (2024-12-10) [Full Changelog](https://github.com/folio-org/ui-requests/compare/v11.0.1...v11.0.2) diff --git a/src/components/InstanceInformation/InstanceInformation.css b/src/components/InstanceInformation/InstanceInformation.css new file mode 100644 index 000000000..03a83a0a4 --- /dev/null +++ b/src/components/InstanceInformation/InstanceInformation.css @@ -0,0 +1,12 @@ +.fieldWrapper { + display: flex; + align-items: start; +} + +.instanceHridField { + margin-right: 20px; +} + +.enterButton { + margin-top: 25px; +} diff --git a/src/components/InstanceInformation/InstanceInformation.js b/src/components/InstanceInformation/InstanceInformation.js index 745b0d818..d1bc1348d 100644 --- a/src/components/InstanceInformation/InstanceInformation.js +++ b/src/components/InstanceInformation/InstanceInformation.js @@ -24,7 +24,7 @@ import { memoizeValidation, } from '../../utils'; -import css from '../../requests.css'; +import css from './InstanceInformation.css'; export const INSTANCE_SEGMENT_FOR_PLUGIN = 'instances'; @@ -174,7 +174,10 @@ class InstanceInformation extends Component { !isEditForm && <> - + {placeholder => { const key = values.keyOfInstanceIdField ?? 0; @@ -202,6 +205,7 @@ class InstanceInformation extends Component { onChange={this.handleChange} onBlur={this.handleBlur(input)} onKeyDown={this.onKeyDown} + className={css.instanceHridField} /> ); }} @@ -209,12 +213,9 @@ class InstanceInformation extends Component { ); }} - - } + } + searchButtonStyle="link" + dataKey="users" + selectUser={this.onSelectUser} + visibleColumns={VISIBLE_COLUMNS} + columnMapping={COLUMN_MAPPING} + disableRecordCreation + marginTop0 + /> {(selectedUser?.id || isEditForm) && - + {placeholder => { const key = values.keyOfInstanceIdField ?? 0; @@ -204,6 +207,7 @@ class InstanceInformation extends Component { onChange={this.handleChange} onBlur={this.handleBlur(input)} onKeyDown={this.onKeyDown} + className={css.instanceHridField} /> ); }} @@ -211,12 +215,9 @@ class InstanceInformation extends Component { ); }} - -