From 48dbc7b719326a900dafbcf295b050b95ac3d851 Mon Sep 17 00:00:00 2001 From: ahmedGaber93 Date: Mon, 23 Oct 2023 23:30:57 +0200 Subject: [PATCH] reduce label size and remove placeholder in new chat room --- src/components/ValuePicker/index.js | 4 +++- src/pages/workspace/WorkspaceNewRoomPage.js | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/ValuePicker/index.js b/src/components/ValuePicker/index.js index 161fbbfadb8b..5d2b997fbcaa 100644 --- a/src/components/ValuePicker/index.js +++ b/src/components/ValuePicker/index.js @@ -7,6 +7,8 @@ import MenuItemWithTopDescription from '../MenuItemWithTopDescription'; import ValueSelectorModal from './ValueSelectorModal'; import FormHelpMessage from '../FormHelpMessage'; import refPropTypes from '../refPropTypes'; +import * as StyleUtils from '../../styles/StyleUtils'; +import variables from '../../styles/variables'; const propTypes = { /** Form Error description */ @@ -59,7 +61,7 @@ function ValuePicker({value, label, items, placeholder, errorText, onInputChange hidePickerModal(); }; - const descStyle = value.length === 0 ? styles.textNormal : null; + const descStyle = value.length === 0 ? StyleUtils.getFontSizeStyle(variables.fontSizeLabel) : null; const selectedItem = _.find(items, {value}); const selectedLabel = selectedItem ? selectedItem.label : ''; diff --git a/src/pages/workspace/WorkspaceNewRoomPage.js b/src/pages/workspace/WorkspaceNewRoomPage.js index da0bf845cc81..cea07b3c953f 100644 --- a/src/pages/workspace/WorkspaceNewRoomPage.js +++ b/src/pages/workspace/WorkspaceNewRoomPage.js @@ -216,7 +216,6 @@ function WorkspaceNewRoomPage(props) {