Skip to content

Commit 20e7ba3

Browse files
committed
Fix input autofill, navbar element, and typings
Add a long CSS transition to neutralize Chrome's autofill background, preventing the yellow/blue autofill styling from showing. Replace the AppNavbar side menu <aside> with a <div> to match the component structure. Scope SigninForm styles (add scoped) and remove the preset input background so autofill styling is handled consistently. Add an explicit Workspace type import and annotate selectWorkspace(workspace) with the Workspace type.
1 parent a07bb2b commit 20e7ba3

4 files changed

Lines changed: 11 additions & 6 deletions

File tree

assets/scss/main.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
@import "theme.scss";
22
@import "bootstrap/scss/bootstrap.scss";
3+
4+
input:-webkit-autofill,
5+
input:-webkit-autofill:hover,
6+
input:-webkit-autofill:focus {
7+
transition: background-color 600000s, color 600000s;
8+
}
39
@import "maplibre-gl/dist/maplibre-gl.css";
410
@import "vue3-toastify/dist/index.css";
511

components/AppNavbar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
@click="closeMobileMenu"
9696
/>
9797

98-
<aside
98+
<div
9999
id="appNavbarSideMenu"
100100
ref="sideMenuRef"
101101
class="sideMenu"
@@ -177,7 +177,7 @@
177177
<span>Logout</span>
178178
</button>
179179
</nav>
180-
</aside>
180+
</div>
181181
</nav>
182182
</template>
183183

components/SigninForm.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ async function signIn() {
147147
}
148148
</script>
149149

150-
<style lang="scss">
150+
<style lang="scss" scoped>
151151
.signin-card {
152152
width: 100%;
153153
max-width: 450px;
@@ -194,12 +194,10 @@ async function signIn() {
194194
min-height: 52px;
195195
border: 1px solid #d0d6e2;
196196
border-radius: 8px;
197-
background-color: #eef2ff;
198197
color: #2f3661;
199198
font-size: 14px;
200199
201200
&:focus {
202-
background-color: #eef2ff;
203201
border-color: #c3cbde;
204202
box-shadow: none;
205203
}

pages/dashboard.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363

6464
<script setup lang="ts">
6565
import { tdeiUserClient, workspacesClient } from '~/services/index';
66+
import type { Workspace } from '~/types/workspaces';
6667
import { compareWorkspaceCreatedAtDesc } from '~/services/workspaces';
6768
6869
const STORAGE_KEY_PROJECT_GROUP = 'tdei-selected-project-group';
@@ -175,7 +176,7 @@ function onCenterLoaded(center) {
175176
currentWorkspace.value!.center = center;
176177
}
177178
178-
async function selectWorkspace(workspace) {
179+
async function selectWorkspace(workspace: Workspace) {
179180
currentWorkspace.value = workspace;
180181
}
181182
</script>

0 commit comments

Comments
 (0)