Skip to content

Commit 9dd62fd

Browse files
committed
move button position
1 parent d991f61 commit 9dd62fd

File tree

4 files changed

+27
-27
lines changed

4 files changed

+27
-27
lines changed

src/app/views/sidebar/resource-explorer/ResourceExplorer.tsx

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,20 @@ const UnstyledResourceExplorer = (props: any) => {
145145
onChange={debouncedSearch}
146146
styles={searchBoxStyles}
147147
/>
148+
<DefaultButton onClick={openPreviewCollection}
149+
iconProps={{iconName: 'AddBookmark'}}
150+
ariaLabel={translateMessage('My API Collection')}
151+
styles={styles.apiCollectionButton}
152+
text={translateMessage('My API Collection')}
153+
>
154+
<Stack horizontal reversed verticalAlign="center" tokens={{ childrenGap: 8 }}>
155+
<Stack.Item align='auto'>
156+
<div style={styles.apiCollectionCount}>
157+
{selectedLinks.length > 0 ? `(${selectedLinks.length})` : '0'}
158+
</div>
159+
</Stack.Item>
160+
</Stack>
161+
</DefaultButton>
148162
<Stack horizontal tokens={{ childrenGap: 10, padding: 10 }} horizontalAlign='space-between'>
149163
<Label styles={{ root: { position: 'relative'} }}>
150164
{translateMessage('Resources available')}
@@ -160,21 +174,6 @@ const UnstyledResourceExplorer = (props: any) => {
160174
</Label>
161175
</Stack>
162176
</Stack>
163-
<DefaultButton onClick={openPreviewCollection}
164-
iconProps={{iconName: 'AddBookmark'}}
165-
ariaLabel={translateMessage('My API Collection')}
166-
styles={styles.apiCollectionButton}
167-
text={translateMessage('My API Collection')}
168-
>
169-
<Stack horizontal reversed verticalAlign="center" tokens={{ childrenGap: 8 }}>
170-
<Stack.Item align='auto'>
171-
<div style={styles.apiCollectionCount}>
172-
{selectedLinks.length > 0 ? `(${selectedLinks.length})` : '0'}
173-
</div>
174-
</Stack.Item>
175-
</Stack>
176-
</DefaultButton>
177-
178177
{
179178
items[0].links.length === 0 ? NoResultsFound('No resources found', { paddingBottom: '20px' }) :
180179
(<Nav

src/app/views/sidebar/resource-explorer/collection/APICollection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ const APICollection: React.FC<PopupsComponent<APICollection>> = (props) => {
216216
farItems={farItems}
217217
/>
218218

219-
<input
219+
<input
220220
key={fileInputKey}
221221
type="file"
222222
id="file-input"

src/app/views/sidebar/resource-explorer/collection/CollectionPermissions.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const CollectionPermissions: FC<PopupsComponent<null>> = (props) => {
8080

8181
return (
8282
<>
83-
<MessageBar isMultiline={true}>
83+
<MessageBar isMultiline={true}>
8484
{translateMessage('list of permissions')}
8585
<Link
8686
target='_blank'
@@ -92,19 +92,19 @@ const CollectionPermissions: FC<PopupsComponent<null>> = (props) => {
9292
>
9393
{translateMessage('Microsoft Graph permissions reference')}
9494
</Link>
95-
</MessageBar>
96-
<div style={{ height: '80vh', overflowY: 'auto', overflowX: 'hidden' }}>
97-
<DetailsList
98-
items={permissionsArray}
99-
columns={columns}
100-
groups={groups}
101-
selectionMode={SelectionMode.none}
102-
/>
95+
</MessageBar>
96+
<div style={{ height: '80vh', overflowY: 'auto', overflowX: 'hidden' }}>
97+
<DetailsList
98+
items={permissionsArray}
99+
columns={columns}
100+
groups={groups}
101+
selectionMode={SelectionMode.none}
102+
/>
103103
</div>
104104
{permissions &&
105105
<DialogFooter styles={{
106106
actionsRight: { bottom: 0, justifyContent: 'start' }
107-
}}>
107+
}}>
108108
<PrimaryButton onClick={downloadPermissions}>
109109
{translateMessage('Download permissions')}
110110
</PrimaryButton>

src/app/views/sidebar/resource-explorer/resources.styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export const resourceExplorerStyles = (theme: ITheme) => {
3636
justifyContent: 'flex-start',
3737
backgroundColor: theme.palette.neutralLighterAlt,
3838
textAlign: 'left',
39-
height: '40px'
39+
height: '40px',
40+
marginTop: '10px'
4041
},
4142
label: {
4243
marginLeft: '8px',

0 commit comments

Comments
 (0)