File tree 4 files changed +28
-4
lines changed
4 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
3
3
import { getAppDisplayName } from 'cozy-client/dist/models/applications'
4
+ import { makeStyles } from 'cozy-ui/transpiled/react/styles'
4
5
import Buttons from 'cozy-ui/transpiled/react/Buttons'
5
6
import AppIcon from 'cozy-ui/transpiled/react/AppIcon'
6
7
import AppLinker from 'cozy-ui/transpiled/react/AppLinker'
@@ -12,9 +13,21 @@ import stack from 'lib/stack'
12
13
13
14
import styles from 'styles/apps-menu.styl'
14
15
16
+ const useStyles = makeStyles ( ( ) => {
17
+ return {
18
+ text : {
19
+ lineHeight : '22.5px' ,
20
+ fontSize : '12px' ,
21
+ fontWeight : 400
22
+ }
23
+ }
24
+ } )
25
+
15
26
export const AppItem = ( { app } ) => {
16
27
const appName = getAppDisplayName ( app )
17
28
29
+ const classes = useStyles ( )
30
+
18
31
return (
19
32
< AppLinker href = { app . href || '' } app = { app } >
20
33
{ ( { onClick, href } ) => {
@@ -36,7 +49,7 @@ export const AppItem = ({ app }) => {
36
49
{ ...stack . get . iconProps ( ) }
37
50
/>
38
51
</ div >
39
- < Typography variant = "subtitle1" noWrap >
52
+ < Typography noWrap className = { classes . text } >
40
53
{ appName }
41
54
</ Typography >
42
55
</ div >
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ const AppsMenu = () => {
30
30
open = { isOpen }
31
31
onClose = { toggleMenu }
32
32
content = { < AppsMenuContent /> }
33
+ classes = { {
34
+ paper : 'u-bdrs-7'
35
+ } }
33
36
/>
34
37
) : (
35
38
< Menu
@@ -46,6 +49,9 @@ const AppsMenu = () => {
46
49
vertical : - 10 ,
47
50
horizontal : 0
48
51
} }
52
+ classes = { {
53
+ paper : 'u-bdrs-7'
54
+ } }
49
55
>
50
56
< AppsMenuContent />
51
57
</ Menu >
Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ const UserMenu = ({ onLogOut }) => {
43
43
diskUsage = { diskUsage }
44
44
/>
45
45
}
46
+ classes = { {
47
+ paper : 'u-bdrs-7'
48
+ } }
46
49
/>
47
50
) : (
48
51
< Menu
@@ -59,6 +62,9 @@ const UserMenu = ({ onLogOut }) => {
59
62
vertical : - 10 ,
60
63
horizontal : 0
61
64
} }
65
+ classes = { {
66
+ paper : 'u-bdrs-7'
67
+ } }
62
68
>
63
69
< UserMenuContent
64
70
onLogOut = { onLogOut }
Original file line number Diff line number Diff line change 7
7
8
8
+desktop ()
9
9
width 15rem
10
- margin-left .5rem
11
- margin-right .5rem
10
+ margin 6px 10px
12
11
13
12
.apps-menu-grid-item-wrapper
14
13
width 33%
24
23
justify-content center
25
24
align-items center
26
25
text-decoration none
27
- gap .2 rem // @stylint ignore Property is valid but unknown by stylint which is old and should be replaced
26
+ gap 4 px // @stylint ignore Property is valid but unknown by stylint which is old and should be replaced
28
27
width 100%
29
28
30
29
.apps-menu-grid-item-icon
You can’t perform that action at this time.
0 commit comments