Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat(sql-editor): enlarge the clickable area of the sheet nav (#2709)

Liu Jiebf98e525b1e
diff --git a/frontend/src/views/SheetDashboard.vue b/frontend/src/views/SheetDashboard.vue
index 5c458e8221..a5bf786854 100644
--- a/frontend/src/views/SheetDashboard.vue
+++ b/frontend/src/views/SheetDashboard.vue
@@ -7,9 +7,9 @@
v-for="nav in navigationList"
:key="nav.path"
:to="nav.path"
- class="text-base p-2 px-3 rounded-lg mt-1 select-none hover:bg-gray-100"
- active-class="actived-link"
- exact-active-class="actived-link"
+ class="text-base w-full p-2 px-3 rounded-lg mt-1 select-none hover:bg-gray-100"
+ active-class="active-link"
+ exact-active-class="active-link"
>{{ nav.label }}</router-link
>
</div>
@@ -23,7 +23,7 @@
>{{ $t("common.project") }}:
</span>
<n-select
- v-model:value="projectSeletorValue"
+ v-model:value="projectSelectorValue"
:consistent-menu-width="false"
:options="projectSelectOptions"
/>
@@ -144,7 +144,7 @@ const currentUser = useCurrentUser();
const projectStore = useProjectStore();
const sheetStore = useSheetStore();
-const projectSeletorValue = ref("");
+const projectSelectorValue = ref("");
const sheetSearchValue = ref("");
const navigationList = computed(() => {
@@ -172,8 +172,8 @@ const shownSheetList = computed(() => {
let t = true;
if (
- projectSeletorValue.value !== "" &&
- projectSeletorValue.value !== sheet.project.name
+ projectSelectorValue.value !== "" &&
+ projectSelectorValue.value !== sheet.project.name
) {
t = false;
}
@@ -197,7 +197,7 @@ const projectList = computed(() => {
const selectedProject = computed(() => {
for (const project of projectList.value) {
- if (project.name === projectSeletorValue.value) {
+ if (project.name === projectSelectorValue.value) {
return project;
}
}
@@ -222,7 +222,7 @@ const projectSelectOptions = computed(() => {
});
const shouldShowClearSearchBtn = computed(() => {
- return projectSeletorValue.value !== "" || sheetSearchValue.value !== "";
+ return projectSelectorValue.value !== "" || sheetSearchValue.value !== "";
});
const currentSubPath = computed(() => {
@@ -265,7 +265,7 @@ const handleSheetClick = (sheet: Sheet) => {
};
const handleClearSearchBtnClick = () => {
- projectSeletorValue.value = "";
+ projectSelectorValue.value = "";
sheetSearchValue.value = "";
};
@@ -444,7 +444,7 @@ const getSheetTableContentValueList = (sheet: Sheet) => {
</script>
<style scoped>
-.actived-link {
+.active-link {
@apply bg-gray-100 text-accent;
}
.sheet-list-container {