What is details pane (aka. Information Pane)?
Detail pane/ Information shows information regarding the document if you selected a one or its showing recent changes within a list or library.Follow link to Microsoft documentation about details pane.
Bad news:
Until Microsoft listen to User Voice, there is no straightforward way to enable disable this even you don't want.Good news:
We could write a SharePoint framework extension to hack styles until Microsoft give us a permanent solution.How?
I found this sample project (Inject CSS into modern SharePoint pages with React) which could reuse to our purpose. Thanks to Hugo for saving my time.
Steps to awesomeness:
- Clone the project
- Resolve dependencies > npm i
- Bundle > gulp bundle --ship
- Package > gulp package-solution --ship
- Upload package into SharePoint App catalog and deploy. You could find package under SharePoint folder.
- Add app into SharePoint page
- Create CSS file called custom.css in "Style Library" of root site (ie. /Style%20Library/custom.css)
- Content of the file will be as below:
button[name*="Details"]{
display: none;
}
Is not that simple? Comment below if you got any issues.
You coul also just empty the variable of the browser local cache "UserSettingsStoreisinfopaneexpanded"
ReplyDeleteThis is something I did not know but still how we going to hide that from user?
DeleteWe could only change the page load behavior with this but not after load.
I'd like to express my gratitude for sharing such an excellent article. The article is instructive because it offers some useful information. Thank you for sharing it with us. Continue to post. Internet Service For Businesses Online
ReplyDeleteExcellent post. I really enjoy reading and also appreciate your work. This concept is a good way to enhance knowledge. Keep sharing this kind of articles, Thank you.Data Cabling Houston
ReplyDelete