diff --git a/docs/.vitepress/theme/components/base/Select.vue b/docs/.vitepress/theme/components/base/Select.vue
index 4d8b34d1b..cb97280fb 100644
--- a/docs/.vitepress/theme/components/base/Select.vue
+++ b/docs/.vitepress/theme/components/base/Select.vue
@@ -1,21 +1,15 @@
@@ -25,12 +19,7 @@ const selected = defineModel<{ name: string; icon: string }>();
class="select-button"
:id="id"
>
-
+
{{ selected.name }}
();
as="template"
>
-
+
{{ item.name }}
();
padding-right: 0.5rem;
}
-.select-item-icon {
- object-fit: contain;
- width: 24px;
- height: 24px;
-}
-
.chevron-icon {
height: 1.25rem;
width: 1.25rem;
diff --git a/docs/.vitepress/theme/components/base/SelectIcon.vue b/docs/.vitepress/theme/components/base/SelectIcon.vue
new file mode 100644
index 000000000..eaa086844
--- /dev/null
+++ b/docs/.vitepress/theme/components/base/SelectIcon.vue
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
diff --git a/docs/.vitepress/theme/components/guide/FrameworkSelect.vue b/docs/.vitepress/theme/components/guide/FrameworkSelect.vue
index b44bdc06f..fa6f104f7 100644
--- a/docs/.vitepress/theme/components/guide/FrameworkSelect.vue
+++ b/docs/.vitepress/theme/components/guide/FrameworkSelect.vue
@@ -23,7 +23,12 @@ const frameworks = [
icon: '/framework-logos/react-native.svg',
route: '/guide/react-native/',
},
- { name: 'Astro', icon: '/framework-logos/astro-dark.svg', route: '/guide/astro/' },
+ {
+ name: 'Astro',
+ icon: '/framework-logos/astro.svg',
+ iconDark: '/framework-logos/astro-dark.svg',
+ route: '/guide/astro/',
+ },
{ name: 'Static', icon: '/framework-logos/svg.svg', route: '/guide/static/' },
];
@@ -43,13 +48,11 @@ const selected = computed(() => {
return current || fallbackFramework.value;
});
-function onSelectFramework(item: { name: string; icon: string; route: string }) {
+function onSelectFramework(item: { name: string; icon: string; iconDark?: string; route: string }) {
fallbackFramework.value = item;
if (item.route !== router.route.path) {
const likeRoute = router.route.path.replace(selected.value.route, item.route);
- console.log(likeRoute);
-
const hasRoute = sidebar[item.route]?.some((section) =>
section?.items?.some(({ link }) => link === likeRoute),
);