You can use Microsoft graph "recent files" endpoint which lists a set of items that have been recently used by the signed in user.
You can find more information in this documentation: List recent files
Try adding below CSS on your page:
overflow-x: hidden !important;
Note: DOM manipulation & CSS customizations are not recommended by Microsoft and some of your customization may break if Microsoft changes HTML element id/classes in new release updates.
Follow below steps:
Go to SharePoint library
Select one document
Click on Properties from command bar at the top
Click on Edit columns dropdown & select Customize with Power Apps.
It will load the properties form in Power Apps (It may take some time)
In Power Apps studio, from tree view at the left click on SharePointForm1 control
Set DefaultMode ...
Would this column formatting code work for you?
If the file name starts with 4 dashes, it adds 25px padding-left and replaces the dashes with 4 spaces. You could add multiple conditions if required (such as 5 dashes = additional padding, etc).