File tree Expand file tree Collapse file tree 2 files changed +41
-39
lines changed
Expand file tree Collapse file tree 2 files changed +41
-39
lines changed Original file line number Diff line number Diff line change @@ -610,31 +610,30 @@ class Views extends TableView {
610610
611611 return (
612612 < div key = { name } className = { styles . headerWrap } style = { { width } } >
613- < span className = { styles . headerText } >
614- < span className = { styles . headerLabel } > { name } </ span >
615- { isPointerColumn && (
616- < button
617- type = "button"
618- className = { styles . pointerIcon }
619- onClick = { ( e ) => {
620- e . stopPropagation ( ) ;
621- e . preventDefault ( ) ;
622- this . handleOpenAllPointers ( name ) ;
623- // Remove focus after action to follow UX best practices
624- e . currentTarget . blur ( ) ;
625- } }
626- aria-label = { `Filter to show all pointers from ${ name } column` }
627- title = "Filter to show all pointers from this column"
628- >
629- < Icon
630- name = "right-outline"
631- width = { 20 }
632- height = { 20 }
633- fill = "white"
634- />
635- </ button >
636- ) }
637- </ span >
613+ < div className = { styles . headerName } > { name } </ div >
614+ < div className = { styles . headerType } > { columnType || 'String' } </ div >
615+ { isPointerColumn && (
616+ < button
617+ type = "button"
618+ className = { styles . pointerIcon }
619+ onClick = { ( e ) => {
620+ e . stopPropagation ( ) ;
621+ e . preventDefault ( ) ;
622+ this . handleOpenAllPointers ( name ) ;
623+ // Remove focus after action to follow UX best practices
624+ e . currentTarget . blur ( ) ;
625+ } }
626+ aria-label = { `Filter to show all pointers from ${ name } column` }
627+ title = "Filter to show all pointers from this column"
628+ >
629+ < Icon
630+ name = "right-outline"
631+ width = { 20 }
632+ height = { 20 }
633+ fill = "white"
634+ />
635+ </ button >
636+ ) }
638637 < DragHandle className = { styles . handle } onDrag = { delta => this . handleResize ( i , delta ) } />
639638 </ div >
640639 ) ;
Original file line number Diff line number Diff line change 1111 background : #66637A ;
1212 color : white ;
1313 font-size : 12px ;
14- line- height : 30px ;
15- padding : 0 16px ;
14+ height : 30px ;
15+ padding : 4 px 16px ;
1616 border-right : 1px solid #e3e3ea ;
1717 position : relative ;
1818 white-space : nowrap ;
1919 overflow : hidden ;
2020 text-overflow : ellipsis ;
2121}
2222
23- .headerText {
24- display : flex ;
25- align-items : center ;
26- justify-content : space-between ;
27- width : 100% ;
28- min-width : 0 ; // Enable text truncation in flex containers
29- }
30-
31- .headerLabel {
23+ .headerName {
3224 color : white ;
3325 font-size : 12px ;
26+ height : 22px ;
27+ line-height : 22px ;
28+ margin-right : 8px ;
29+ float : left ;
30+ max-width : 100% ;
31+ overflow : hidden ;
32+ text-overflow : ellipsis ;
33+ }
34+
35+ .headerType {
36+ color : #A2A6B1 ;
37+ font-size : 10px ;
38+ height : 22px ;
39+ line-height : 22px ;
3440 overflow : hidden ;
3541 text-overflow : ellipsis ;
36- white-space : nowrap ;
37- flex : 1 ;
38- min-width : 0 ; // Enable text truncation
3942}
4043
4144.pointerIcon {
You can’t perform that action at this time.
0 commit comments