Skip to content

Commit b1bc4c0

Browse files
Venkataramanan VenkateswaranVenkataramanan Venkateswaran
authored andcommitted
Venkataramanan fix: confirm button height
1 parent d836c69 commit b1bc4c0

2 files changed

Lines changed: 33 additions & 34 deletions

File tree

src/components/UserProfile/TeamsAndProjects/AddProjectPopup.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ const AddProjectPopup = React.memo((props) => {
190190
style={{
191191
...(darkMode ? {} : boxStyle),
192192
minWidth: '120px',
193-
height: '48px',
193+
height: '38px',
194194
alignSelf: 'stretch',
195195
}}
196196
onClick={creatingNew ? handleCreateNew : handleConfirm}

src/components/UserProfile/TeamsAndProjects/AddTeamPopup.jsx

Lines changed: 32 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -262,44 +262,43 @@ const AddTeamPopup = React.memo((props) => {
262262
>
263263
Team Name
264264
</label>
265-
266-
<div
267-
style={{
268-
display: 'flex',
269-
alignItems: 'stretch',
270-
gap: '0.75rem',
271-
width: '100%',
272-
flexWrap: 'wrap',
273-
}}
274-
>
275265
<div
276266
style={{
277-
flex: '1 1 420px',
278-
minWidth: '260px',
267+
display: 'flex',
268+
alignItems: 'stretch',
269+
gap: '0.75rem',
270+
width: '100%',
279271
}}
280272
>
281-
<AddTeamsAutoComplete
282-
teamsData={{ allTeams }}
283-
onCreateNewTeam={onCreateTeam}
284-
searchText={searchText}
285-
setInputs={onSelectTeam}
286-
setSearchText={setSearchText}
287-
/>
288-
</div>
273+
<div
274+
style={{
275+
flex: 1,
276+
minWidth: 0,
277+
}}
278+
>
279+
<AddTeamsAutoComplete
280+
teamsData={{ allTeams }}
281+
onCreateNewTeam={onCreateTeam}
282+
searchText={searchText}
283+
setInputs={onSelectTeam}
284+
setSearchText={setSearchText}
285+
/>
286+
</div>
289287

290-
<Button
291-
color="primary"
292-
onClick={onConfirm}
293-
disabled={isLoading}
294-
style={{
295-
minWidth: '120px',
296-
height: '48px',
297-
fontWeight: 600,
298-
}}
299-
>
300-
{isLoading ? <Spinner color="light" size="sm" /> : 'Confirm'}
301-
</Button>
302-
</div>
288+
<Button
289+
color="primary"
290+
onClick={onConfirm}
291+
disabled={isLoading}
292+
style={{
293+
width: '140px',
294+
height: '38px',
295+
fontWeight: 600,
296+
flexShrink: 0,
297+
}}
298+
>
299+
{isLoading ? <Spinner color="light" size="sm" /> : 'Confirm'}
300+
</Button>
301+
</div>
303302

304303
{teamsLoading && (
305304
<div

0 commit comments

Comments
 (0)