File tree Expand file tree Collapse file tree 7 files changed +48
-5
lines changed Expand file tree Collapse file tree 7 files changed +48
-5
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class Searchbar extends React.Component {
58
58
className = "searchbar__input"
59
59
type = "text"
60
60
value = { searchValue }
61
- placeholder = "Search files ..."
61
+ placeholder = "Search sketches ..."
62
62
onChange = { this . handleSearchChange }
63
63
onKeyUp = { this . handleSearchEnter }
64
64
/>
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import Nav from '../../../components/Nav';
9
9
10
10
import AssetList from '../../IDE/components/AssetList' ;
11
11
import SketchList from '../../IDE/components/SketchList' ;
12
+ import Searchbar from '../../IDE/components/Searchbar' ;
12
13
13
14
import DashboardTabSwitcher , { TabKey } from '../components/DashboardTabSwitcher' ;
14
15
@@ -75,6 +76,7 @@ class DashboardView extends React.Component {
75
76
< h2 className = "dashboard-header__header__title" > { this . ownerName ( ) } </ h2 >
76
77
77
78
< DashboardTabSwitcher currentTab = { currentTab } isOwner = { isOwner } username = { username } />
79
+ { currentTab === TabKey . sketches && < Searchbar /> }
78
80
</ div >
79
81
80
82
< div className = "dashboard-content" >
Original file line number Diff line number Diff line change 7
7
8
8
.asset-table {
9
9
width : 100% ;
10
- padding : #{10 / $base-font-size } rem 0 ;
10
+ padding-bottom : #{10 / $base-font-size } rem;
11
11
max-height : 100% ;
12
12
border-spacing : 0 ;
13
13
& .asset-list__delete-column {
22
22
}
23
23
24
24
& th {
25
+ padding-top : #{10 / $base-font-size } rem;
26
+ padding-bottom : #{15 / $base-font-size } rem;
25
27
height : #{32 / $base-font-size } rem;
26
28
font-weight : normal ;
29
+ position : sticky ;
30
+ top : #{15 / $base-font-size } rem;
31
+ @include themify () {
32
+ background-color : getThemifyVariable (' background-color' );
33
+ }
27
34
}
28
35
}
29
36
57
64
58
65
.asset-table__total {
59
66
padding : 0 #{20 / $base-font-size } rem;
67
+ position : sticky ;
68
+ top : 0 ;
69
+ @include themify () {
70
+ background-color : getThemifyVariable (' background-color' );
71
+ }
60
72
}
Original file line number Diff line number Diff line change 1
1
.dashboard-header {
2
2
padding : #{24 / $base-font-size } rem #{66 / $base-font-size } rem;
3
+ position : relative ;
4
+ flex : 1 ;
5
+ overflow : hidden ;
6
+ display : flex ;
7
+ flex-direction :column ;
3
8
}
4
9
5
10
.dashboard-header__tabs {
Original file line number Diff line number Diff line change 2
2
position : absolute ;
3
3
display : flex ;
4
4
padding-left : #{17 / $base-font-size } rem;
5
- right : #{50 / $base-font-size } rem;
6
- top : #{14 / $base-font-size } rem;
5
+ right : #{66 / $base-font-size } rem;
6
+ top : #{65 / $base-font-size } rem;
7
7
}
8
8
9
9
.searchbar__input {
18
18
}
19
19
}
20
20
21
- .searchbar__button {
21
+ button [type = " submit" ].searchbar__button {
22
+ background-color : unset ;
22
23
width : #{31 / $base-font-size } rem;
23
24
height : #{36 / $base-font-size } rem;
24
25
position : absolute ;
25
26
padding : 0 ;
27
+ border : 0 ;
26
28
border-right : solid 1px ;
27
29
@include themify () {
28
30
border-right-color : getThemifyVariable (' input-border-color' );
29
31
}
32
+ & :enabled:hover {
33
+ background-color : unset ;
34
+ @include themify () {
35
+ border-right-color : getThemifyVariable (' input-border-color' );
36
+ }
37
+ & g {
38
+ fill : unset ;
39
+ }
40
+ }
30
41
}
31
42
32
43
.searchbar__icon {
Original file line number Diff line number Diff line change 17
17
18
18
.sketches-table thead th {
19
19
height : #{32 / $base-font-size } rem;
20
+ position : sticky ;
21
+ top : 0 ;
22
+ @include themify () {
23
+ background-color : getThemifyVariable (' background-color' );
24
+ }
20
25
}
21
26
22
27
.sketch-list__sort-button {
Original file line number Diff line number Diff line change 6
6
color : getThemifyVariable (' primary-text-color' );
7
7
background-color : getThemifyVariable (' background-color' );
8
8
}
9
+ height : 100% ;
10
+ }
11
+
12
+ .dashboard-content {
13
+ display : flex ;
14
+ flex-direction : column ;
15
+ flex : 1 ;
16
+ overflow : hidden ;
9
17
}
You can’t perform that action at this time.
0 commit comments