@@ -185,26 +185,6 @@ const Service = ({ name, namespace }: Props) => {
185185 ) ;
186186 } ;
187187
188- const portActionsMenu = ( port : any ) => {
189- return (
190- < div style = { { width : "400px" } } >
191- < h3 > Port actions</ h3 >
192- < Divider style = { { margin : "8px" } } />
193- < Row style = { { margin : 4 , gap : 8 } } >
194- < Button
195- style = { { width : "100%" } }
196- onClick = { ( ) => {
197- setPortForwardModal ( { open : true , ports : [ port . port ] } ) ;
198- } }
199- >
200- < ApiOutlined />
201- Port forward
202- </ Button >
203- </ Row >
204- </ div >
205- ) ;
206- } ;
207-
208188 const portForwardCommand = (
209189 < div >
210190 < span style = { { color : mode === "light" ? "navy" : "lightblue" } } >
@@ -259,6 +239,7 @@ const Service = ({ name, namespace }: Props) => {
259239 title = "Name"
260240 dataIndex = "name"
261241 key = "name"
242+ width = "20%"
262243 render = { ( text ) =>
263244 text ? (
264245 text
@@ -267,28 +248,26 @@ const Service = ({ name, namespace }: Props) => {
267248 )
268249 }
269250 />
270- < Table . Column title = "Protocol" dataIndex = "protocol" />
271- < Table . Column title = "Port" dataIndex = "port" />
272- < Table . Column title = "Target port" dataIndex = "targetPort" />
251+ < Table . Column title = "Protocol" dataIndex = "protocol" width = "19%" />
252+ < Table . Column title = "Port" dataIndex = "port" width = "18%" />
253+ < Table . Column
254+ title = "Target port"
255+ dataIndex = "targetPort"
256+ width = "18%"
257+ />
273258 < Table . Column
274- title = "Actions"
275259 key = "actions"
276- width = "8 %"
260+ width = "25 %"
277261 render = { ( port ) => (
278- < Popover
279- placement = { "topRight" }
280- content = { portActionsMenu ( port ) }
281- trigger = "click"
262+ < Button
263+ style = { { width : "100%" } }
264+ onClick = { ( ) => {
265+ setPortForwardModal ( { open : true , ports : [ port . port ] } ) ;
266+ } }
282267 >
283- < div
284- style = { {
285- display : "flex" ,
286- justifyContent : "center" ,
287- } }
288- >
289- < EllipsisOutlined />
290- </ div >
291- </ Popover >
268+ < ApiOutlined />
269+ Port forward
270+ </ Button >
292271 ) }
293272 />
294273 </ Table >
0 commit comments