Skip to content

Commit c4f220b

Browse files
authored
Merge pull request #2216 from JohnDuprey/dev
More UI Tweaks
2 parents f5c816c + 377a662 commit c4f220b

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

src/components/header/AppHeaderSearch.jsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useCallback } from 'react'
22
import { faSearch } from '@fortawesome/free-solid-svg-icons'
33
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
44
import { toggleSwitcher } from 'src/store/features/switcher'
5-
import { CButton } from '@coreui/react'
5+
import { CButton, CTooltip } from '@coreui/react'
66
import { useDispatch } from 'react-redux'
77

88
const AppHeaderSearch = () => {
@@ -12,9 +12,11 @@ const AppHeaderSearch = () => {
1212
}, [dispatch])
1313
return (
1414
<>
15-
<CButton variant="ghost" onClick={handleFastSwitcher}>
16-
<FontAwesomeIcon icon={faSearch} size="lg" />
17-
</CButton>
15+
<CTooltip content="Search" placement="bottom">
16+
<CButton variant="ghost" onClick={handleFastSwitcher}>
17+
<FontAwesomeIcon icon={faSearch} size="lg" />
18+
</CButton>
19+
</CTooltip>
1820
</>
1921
)
2022
}

src/components/layout/AppHeader.jsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@ import { useSelector, useDispatch } from 'react-redux'
33
import {
44
CAlert,
55
CAlertLink,
6-
CContainer,
7-
CCollapse,
86
CHeader,
97
CHeaderNav,
108
CNavItem,
119
CHeaderToggler,
12-
CImage,
13-
CSidebarBrand,
1410
CButton,
1511
CFormSwitch,
16-
CLink,
12+
CTooltip,
1713
} from '@coreui/react'
1814
import { AppHeaderSearch } from 'src/components/header'
1915
import { CippActionsOffcanvas, TenantSelector } from '../utilities'
@@ -142,18 +138,22 @@ const AppHeader = () => {
142138
target="_blank"
143139
href={`https://docs.cipp.app/user-documentation${location.pathname}`}
144140
>
145-
<CButton variant="ghost">
146-
<FontAwesomeIcon icon={'question'} size="lg" />
147-
</CButton>
141+
<CTooltip content="Documentation" placement="bottom">
142+
<CButton variant="ghost">
143+
<FontAwesomeIcon icon={'question'} size="lg" />
144+
</CButton>
145+
</CTooltip>
148146
</a>
149147
</CNavItem>
150148
<CNavItem>
151149
<AppHeaderSearch />
152150
</CNavItem>
153151
<CNavItem>
154-
<CButton variant="ghost" onClick={() => loadCippQueue()}>
155-
<FontAwesomeIcon icon={'history'} className="me-2" />
156-
</CButton>
152+
<CTooltip content="Recent Jobs" placement="bottom">
153+
<CButton variant="ghost" onClick={() => loadCippQueue()} className="me-1">
154+
<FontAwesomeIcon icon={'history'} size="lg" />
155+
</CButton>
156+
</CTooltip>
157157
</CNavItem>
158158
<CNavItem>
159159
<div className="custom-switch-wrapper primary">

src/views/endpoint/intune/MEMListPolicies.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
1414
import { CippPageList } from 'src/components/layout'
1515
import { Link } from 'react-router-dom'
16-
import { CippActionsOffcanvas } from 'src/components/utilities'
16+
import { CippActionsOffcanvas, CippCodeBlock } from 'src/components/utilities'
1717
import { TitleButton } from 'src/components/buttons'
1818

1919
const Actions = (row, rowIndex, formatExtraData) => {
@@ -116,7 +116,7 @@ const IntuneList = () => {
116116
// eslint-disable-next-line react/prop-types
117117
const ExpandedComponent = ({ data }) => (
118118
// eslint-disable-next-line react/prop-types
119-
<pre>{JSON.stringify(data, null, 2)}</pre>
119+
<CippCodeBlock code={JSON.stringify(data, null, 2)} language="json" />
120120
)
121121

122122
return (

0 commit comments

Comments
 (0)