Hiding preview button in document manager

I want to hide the preview button that opens the side widget with the comments and preview image. Can this be done? I tried like this but if the user clicks on trash, the trash removal icon appears which is fine but then when clicking on any other folder, the preview button returns…

      class CustomTopBar extends docManager.views.topbar {
            config() {
                // get JSON object with configuration
                const ui = super.config();

                ui.cols[4].hidden = true;

                return ui;
            }
            init() {
                // call default logic
                super.init();
            }
        }

Hello @Jonas ,
By default logic the preview buttin is shown after the hiding trash button in the init(). We could hide it here completely, check the example; Code Snippet .