The stylesheet is now designed to be used “out of the box” to restore the look of the original expanded record view. (Unfortunately, I’m working off my memory of what it looked like so it may not be an exact replica.)
Here’s what it looks like by default:
Or, if you prefer the new expanded record view design, you can select the “Current” preset and make some tweaks (below: column layout, zebra stripes, type-based field coloring, compact linked record view, expanded whitespace, variable field width):
The code for the expanded record view has been completely overhauled. Due to the number of tweaks, instead of grouping rules by function, they’re now defined based on the view’s HTML structure. There may be some new bugs, but thanks to the new structure, changes will only affect the full expanded record view (and not the mini expanded record view in Timeline views, for example).
Setting up Stylus:
Download the file linked below (Airtable UI QoL 2022-02-11.user.css)
Click on the addon/extension icon and select “Manage”
Drag and drop the .css file into the window with the Stylus management page
If Step 4 doesn’t work, you can manually add the stylesheet as follows:
a. On the Manage page, click “Write new style” (make sure “as Usercss” is checked)
b. Copy the contents of the file you downloaded
c. Paste it into the window
d. Click “Save”
I previously started a topic on Better Whitespace Use with Custom CSS, and this is a follow-up based on the recent change to the expanded record view.
And you can make your expanded record view resemble the abomination seen here:
or the slightly less ugly version:
The stylesheet has several options for you to dial in the appreance that you want. Note that I’ve cobbled this together over the course of the workday so I haven’t been able to test it extensively or figured out what to do with all the variables (or figured out a good way to restore the original one-column layout), but I’ve added notes throughout the file to explain what each bit of CSS does.
Thanks for this excellent resource, @Andy_Lin1!
I found an unexpected behavior and thought you might want to know about it: The additions to fix the expanded records modal also have an impact on the popups in Timeline view:
From what I can tell, it’s doubling up the icons and changing the radius on the ‘remove link’ button on linked records.
Again, thanks. This is a great tool and I appreciate you sharing it with everyone!
Thanks for the report! I’ll have to dig into it a bit (we don’t use the timeline view in our base so this was a blind spot for me). I’m planning on overhauling the stylesheet this weekend if I have time to add more variables and make it easier to customize (and also make sure I’m actually targeting the correct elements and not just what looks correct).
In the meantime, I’ve updated the sheet (still at the same URL) to add a way to emulate the previous view:
The screenshot includes the style options you should turn on:
Hopefully it doesn’t break anything else…
This is fantastic @Andy_Lin1 - thank you so much!
Has anyone had any success getting this userscript to work in Fluid.app? I can get the script to work in Chrome but I use Airtable interfaces in Fluid, a SSB, which supports userscripts.
Glad you like it!
I don’t use Fluid myself, but I’m guessing that it doesn’t support the CSS preprocessor language I used (Stylus, which is not related to the browser extension)?
Since you have it working in Chrome, you can grab the compiled CSS with DevTools.
In any Airtable view, open DevTools and click on the Elements tab, look for a style with class ‘stylus’, for me it was at the end, right before the
You can then copy and paste the CSS into the Userstyles (not Userscript) section of Fluid.