@@ -84,15 +84,16 @@ def views_dropdown(parent: Element, command: ChannelCommandProcessor) -> None:
8484 """Dropdown menu for channel environment views."""
8585
8686 select = select_element (
87- parent = div (tag = "th" , parent = parent , class_str = "p-0" ),
87+ parent = div (
88+ tag = "th" , parent = parent , class_str = "p-0 channel-views-min-width"
89+ ),
8890 id = "filter-view" ,
8991 title = "Canonical channel filters." ,
9092 ).add_class ("border-end-0" , "w-100" )
9193 div (tag = "option" , value = "" , text = "-" , parent = select )
94+ div (tag = "option" , value = "^$" , text = "hide" , parent = select )
9295 for text , value in command .env .views .items ():
9396 div (tag = "option" , value = value , text = text , parent = select )
94- if not command .env .views :
95- select .booleans .add ("disabled" )
9697
9798
9899def channel_table_header (
@@ -120,7 +121,11 @@ def channel_table_header(
120121 ).add_class (* TABLE_BUTTON_CLASSES )
121122
122123 _ , label , box = input_box (
123- div (tag = "th" , parent = ctl_row , class_str = "p-0 border-end-0" ),
124+ div (
125+ tag = "th" ,
126+ parent = ctl_row ,
127+ class_str = "p-0 border-end-0 channel-filter-min-width" ,
128+ ),
124129 description = "Channel name filter." ,
125130 pattern = ".* ! @ $" ,
126131 label = "filter" ,
@@ -137,7 +142,7 @@ def channel_table_header(
137142 parent = div (tag = "th" , parent = ctl_row , colspan = "2" , class_str = "p-0" )
138143 )
139144
140- # Add a selection menu for custom commands. (need a data source for this)
145+ # Add a selection menu for custom commands.
141146 select = select_element (
142147 parent = cell , id = "custom-commands" , title = "Custom command selector."
143148 )
@@ -157,12 +162,7 @@ def channel_table_header(
157162 tooltip = "Send selected command (left dropdown)." ,
158163 ).add_class (* TABLE_BUTTON_CLASSES )
159164 else :
160- div (
161- tag = "option" ,
162- parent = select ,
163- value = "noop" ,
164- text = "no custom commands" ,
165- )
165+ div (tag = "option" , parent = select , value = "noop" , text = "-" )
166166 select .booleans .add ("disabled" )
167167
168168 # Button for 'reset all defaults' if this tab has more than one channel
0 commit comments