Skip to content

Commit

Permalink
Fixed problem with Menu
Browse files Browse the repository at this point in the history
Changed navbar to sticky
Centred tooltip in skills icons
Trying to resolve problem with lang browser detection
  • Loading branch information
MacKey-255 committed Jul 31, 2023
1 parent e0977fc commit 1d04921
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion components/layout/AppMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ export default {
@media only screen and (max-device-width: 640px) {
.navbar {
margin: 0;
position: relative;
position: sticky;
top: 0;
transform: none;
}
Expand Down
4 changes: 2 additions & 2 deletions components/tabs/Skills.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
rounded-r-md shadow-sm">
{{ item.xp }} {{ item.xp > 1 ? $t('years') : $t('year') }}
</span-->
<div class='has-tooltip'>
<span class='tooltip px-3 py-1.5 font-semibold text-sm bg-gray-300 dark:bg-slate-600 dark:text-white rounded-md shadow-sm -mt-8'>
<div class="has-tooltip flex justify-center">
<span class="tooltip px-3 py-1.5 font-semibold text-sm bg-gray-300 dark:bg-slate-600 dark:text-white rounded-md shadow-sm -mt-8">
{{item.label}}
</span>
<img :src="item.icon" :alt="item.label" class="tech-icon px-2 py-1">
Expand Down
4 changes: 0 additions & 4 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ export default {
if (process.client) {
// Load dark mode from browser local storage
this.SET_DARK(localStorage.getItem('dark-theme') === 'true');
// Fix problem with Chrome and saturate background
if(!!window.chrome) {
console.log('Chrome')
}
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ export default {
},
detectBrowserLanguage: {
useCookie: true,
redirectOn: 'root'
redirectOn: 'root',
alwaysRedirect: true
}
},

Expand Down
3 changes: 3 additions & 0 deletions plugins/route-lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ export default ({ app, store }) => {
to.query.lang = 'en';
}
app.i18n.setLocale(to.query.lang);
} else {
app.i18n.setLocale(app.i18n.locale);
}

// Detect page
const value = to.hash.replace('#', '');
store.commit('SET_PAGE', value);
Expand Down

0 comments on commit 1d04921

Please sign in to comment.