6
6
7
7
import React from 'react' ;
8
8
9
- import {
10
- Catcher ,
11
- Container ,
12
- Padding ,
13
- Responsive ,
14
- useScreenMode
15
- } from '@zextras/carbonio-design-system' ;
9
+ import { Catcher , Container , Padding } from '@zextras/carbonio-design-system' ;
16
10
import type { SearchBar as SearchUISearchBar } from '@zextras/carbonio-search-ui' ;
17
11
import styled from 'styled-components' ;
18
12
@@ -37,7 +31,6 @@ interface ShellHeaderProps {
37
31
const ShellHeader = ( { children } : ShellHeaderProps ) : React . JSX . Element => {
38
32
const { darkReaderStatus } = useDarkMode ( ) ;
39
33
40
- const screenMode = useScreenMode ( ) ;
41
34
const [ SearchBar , isSearchBarAvailable ] =
42
35
useIntegratedComponent < typeof SearchUISearchBar > ( 'search-bar' ) ;
43
36
return (
@@ -51,7 +44,7 @@ const ShellHeader = ({ children }: ShellHeaderProps): React.JSX.Element => {
51
44
maxHeight = { HEADER_BAR_HEIGHT }
52
45
mainAlignment = "space-between"
53
46
padding = { {
54
- horizontal : screenMode === 'desktop' ? ' large' : 'extrasmall ',
47
+ horizontal : ' large',
55
48
vertical : 'small'
56
49
} }
57
50
>
@@ -68,10 +61,15 @@ const ShellHeader = ({ children }: ShellHeaderProps): React.JSX.Element => {
68
61
< Padding horizontal = "large" >
69
62
< CreationButton />
70
63
</ Padding >
71
- < Responsive mode = "desktop" > { isSearchBarAvailable && < SearchBar /> } </ Responsive >
64
+ { isSearchBarAvailable && < SearchBar /> }
72
65
</ Container >
73
- < Container orientation = "horizontal" width = "auto" mainAlignment = "flex-end" >
74
- < Responsive mode = "desktop" > { children } </ Responsive >
66
+ < Container
67
+ orientation = "horizontal"
68
+ width = "auto"
69
+ mainAlignment = "flex-end"
70
+ padding = { { left : 'small' } }
71
+ >
72
+ { children }
75
73
</ Container >
76
74
</ Catcher >
77
75
</ ShellHeaderContainer >
0 commit comments