Best way to add close button on mini-browser tab

There would be a better approach to add a close button on minibrowser tab to close the widget other than exteding MiniBrowser class?

[original thread by jvsoares]

There should be the close button already: https://github.com/eclipse-theia/theia/blob/master/packages/mini-browser/src/browser/mini-browser.ts#L48

[jvsoares]

[jvsoares]

Hmm, I am opening via ‘mini-browser.openUrl’ and the button is not visible, let me share an image showing the option we would like to have in any of the toolbars

[jvsoares]

Another option would be along with PREVIEW title, on mouse hover, as we have in editor tabs

It’s only visible in the main and bottom area. In the side areas, one has to use the context menu, i.e. right click on the icon in the side area.

I agree that it is confusing, please file an issue! It would be nice to have the close icon there and also the context menu should work from the title the same way as in the main area.

[jvsoares]

Cool, I’ve created the issue https://github.com/eclipse-theia/theia/issues/6496

[jvsoares]

Would you share any similar code that is already in place? Maybe I can create a PR, since I am starting on theia development I would appreciate any reference