This snippet transforms the default visual styles for switching between different database views. By default database views uses a dropdown, this snippet transforms that into a series of horizontal tabs as seen below (the picker will revert to a dropdown on mobile).
Installation instructions
- Open your site in the Super Dashboard
- Open the ‘Code’ page
- In the ‘Head’ tab, paste the following snippet:
- If you want to customize the colors, in the ‘CSS’ tab, paste the following snippet:
- You can then replace the CSS variables
var(--color-ui-hover-bg)with RGB or HEX color codes
<link rel="stylesheet" href="https://sites.super.so/snippets/v2/view-picker.css">