File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
kafka-ui-react-app/src/components/Topics/List Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -24,4 +24,5 @@ export const Link = styled(NavLink).attrs({ activeClassName: 'is-active' })<{
2424
2525export const ActionsTd = styled ( Td ) `
2626 overflow: visible;
27+ width: 50px;
2728` ;
Original file line number Diff line number Diff line change @@ -185,6 +185,8 @@ const List: React.FC<TopicsListProps> = ({
185185 setRecreateTopicConfirmationVisible ,
186186 ] = React . useState ( false ) ;
187187
188+ const isHidden = internal || isReadOnly || ! hovered ;
189+
188190 const deleteTopicHandler = React . useCallback ( ( ) => {
189191 deleteTopic ( clusterName , name ) ;
190192 } , [ name ] ) ;
@@ -200,8 +202,8 @@ const List: React.FC<TopicsListProps> = ({
200202
201203 return (
202204 < >
203- { ! internal && ! isReadOnly && hovered ? (
204- < div className = "has-text-right" >
205+ < div className = "has-text-right" >
206+ { ! isHidden && (
205207 < Dropdown label = { < VerticalElipsisIcon /> } right >
206208 { cleanUpPolicy === CleanUpPolicy . DELETE && (
207209 < DropdownItem onClick = { clearTopicMessagesHandler } danger >
@@ -223,8 +225,8 @@ const List: React.FC<TopicsListProps> = ({
223225 Recreate Topic
224226 </ DropdownItem >
225227 </ Dropdown >
226- </ div >
227- ) : null }
228+ ) }
229+ </ div >
228230 < ConfirmationModal
229231 isOpen = { isDeleteTopicConfirmationVisible }
230232 onCancel = { ( ) => setDeleteTopicConfirmationVisible ( false ) }
You can’t perform that action at this time.
0 commit comments