File tree Expand file tree Collapse file tree 5 files changed +6
-94
lines changed
packages/atomic/src/components
search/tabs/atomic-tab-manager Expand file tree Collapse file tree 5 files changed +6
-94
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ export class TabManagerBar {
185
185
186
186
public render = ( ) => {
187
187
return (
188
- < Host >
188
+ < Host class = "overflow-x-clip overflow-y-visible" >
189
189
< slot > </ slot >
190
190
< tab-popover > { this . popoverTabs } </ tab-popover >
191
191
</ Host >
Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ export class TabManagerButton {
36
36
return (
37
37
< Host
38
38
role = "listitem"
39
- class = { `${ this . activeTabClass } ` }
39
+ class = { `${ this . activeTabClass } max-w-[50%] sm:max-w-full ` }
40
40
aria-current = { this . active ? 'true' : 'false' }
41
41
aria-label = { 'tab for ' + this . label }
42
42
part = "button-container"
43
43
>
44
44
< button
45
- class = { `w-full px-6 pb-1 text-xl ${ this . activeTabTextClass } ` }
45
+ class = { `w-full truncate px-2 pb-1 text-xl sm:px-6 ${ this . activeTabTextClass } ` }
46
46
part = "tab-button"
47
47
onClick = { this . select }
48
48
>
Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ import {
10
10
BindStateToController ,
11
11
InitializeBindings ,
12
12
} from '../../../../utils/initialization-utils' ;
13
- import { TabDropdown } from '../../../common/tab-manager/tab-dropdown' ;
14
- import { TabDropdownOption } from '../../../common/tab-manager/tab-dropdown-option' ;
15
13
import { Bindings } from '../../atomic-search-interface/atomic-search-interface' ;
16
14
17
15
/**
@@ -90,42 +88,20 @@ export class AtomicTabManager {
90
88
role = "list"
91
89
aria-label = "tab-area"
92
90
part = "tab-area"
93
- class = "mb-2 flex hidden w-full flex-row border-b sm:flex "
91
+ class = "mb-2 flex w-full flex-row border-b"
94
92
>
95
93
{ this . tabs . map ( ( tab ) => (
96
- < Tab-Manager-Button
94
+ < tab-manager-button
97
95
active = { this . tabManagerState . activeTab === tab . name }
98
96
label = { tab . label }
99
97
select = { ( ) => {
100
98
if ( ! tab . tabController . state . isActive ) {
101
99
tab . tabController . select ( ) ;
102
100
}
103
101
} }
104
- > </ Tab-Manager-Button >
102
+ > </ tab-manager-button >
105
103
) ) }
106
104
</ div >
107
- < div class = "w-full sm:hidden" >
108
- < TabDropdown
109
- tabs = { this . tabs }
110
- activeTab = { this . tabManagerState . activeTab }
111
- onTabChange = { ( e ) => {
112
- const selectedTab = this . tabs . find (
113
- ( tab ) => tab . name === ( e as string )
114
- ) ;
115
- if ( selectedTab ) {
116
- selectedTab . tabController . select ( ) ;
117
- }
118
- } }
119
- >
120
- { this . tabs . map ( ( tab ) => (
121
- < TabDropdownOption
122
- value = { tab . name }
123
- label = { tab . label }
124
- isSelected = { tab . name === this . tabManagerState . activeTab }
125
- />
126
- ) ) }
127
- </ TabDropdown >
128
- </ div >
129
105
</ tab-manager-bar >
130
106
</ Host >
131
107
) ;
You can’t perform that action at this time.
0 commit comments