Show file info in last finder column
You can change the preview settings in Finder for each of the various kinds of documents via the View > Show Preview Options menu.

Just un-tick the "Show Quick Actions" option for text files (see top of window) to get rid of the Quick Actions toolbar in the preview area.