Limit pre-release versions in dropdown

The version selector now shows a maximum of 10 pre-release versions instead of listing all of them, and stops showing pre-releases once a stable release is encountered. This keeps the version dropdown more manageable while still giving users access to recent pre-release builds.