Skip to content

Commit 342ecb6

Browse files
committed
compatibility redirect
1 parent 210cdd6 commit 342ecb6

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/components/timeline/XDaysView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ async function updateData() {
266266
267267
@media (max-width: 768px) {
268268
#view-container {
269-
height: calc(100% - 0.2rem);
270-
margin: 0.2rem;
269+
height: calc(100% - 2 * 0.3rem);
270+
margin: 0.3rem;
271271
}
272272
}
273273
</style>

src/router.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { settings } from '@/services/settings';
77
const router = createRouter({
88
history: createWebHistory(import.meta.env.BASE_URL),
99
routes: [
10+
{ path: '/week', redirect: '/w' }, // TODO: delete compatibility
11+
{ path: '/4days', redirect: '/4d' },
1012
{
1113
name: 'calendar',
1214
path: '/:view(4d|w|m)/:year(\\d+)?/:month(\\d+)?/:day(\\d+)?',

0 commit comments

Comments
 (0)