open txt in browser in sharepoint modern
When switching to modern view, you are no longer able to open .txt files by clicking on them, to open them in the browser. Instead a message is shown with the text:
Hmm... looks like this file doesn't have a preview we can show you.
If you select the .txt file and click on the details pane, it does preview/show the contents.
Feature request (or bug fix?) that SharePoint modern opens .txt files the same way as classic does. (By attempting to open them in the current browser).
Now we cannot switch to modern theme only because our users will then have to download and then open the txt file. Which are more steps e.g. costs more time per file.