Elements:
- Magnet; 20x3mm (the 1 and 1.5mm disk magnets are a bit too weak, though quite usable with a base made of a heavier metal (e.g. brass or steel rather than Aluminum)
- Base; outer diameter not critical; e.g. 22mm; inner diameter should match the sliding part; e.g. 18mm. Inset at button for magnet; 0.5mm less than the magnet height. Cup depth should be more than 10mm. Threaded hole at the bottom.
- Sliding part; outer diameter should fit base cup; e.g. 18mm. Inside bore should fit spring (e.g. 11mm) and the hole should fit the pin
- Pin; Threaded at the bottom. Should fit the hole of the sliding part and the spring should fit around it.
Easiest is to make the sliding cup first; and match the hole in the base to it.
I bought pcbites clones from aliexpress, and cut the springs in half, and bought smaller screws. My pcb's are now 21mm from the table.