Skip to content

Commit 87059b0

Browse files
author
Nathan Reyes
committed
Fix nav panel layout bug in Firefox
1 parent a97bce7 commit 87059b0

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.2.1
2+
* Fix layout bug with navigation panel in Firefox
3+
14
## 0.2.0
25
* Simplify header title layout
36
* Add navigation panel popover with indicators

docs/components/home/examples/ExContentStyles.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<template>
22
<v-calendar
33
:attributes='attributes'
4-
is-double-paned
5-
:min-page='minPage'>
4+
is-double-paned>
65
</v-calendar>
76
</template>
87

@@ -17,10 +16,6 @@ export default {
1716
nextMonth,
1817
nextMonthYear } = getExampleMonthComps();
1918
return {
20-
minPage: {
21-
month: 4,
22-
year: 2016,
23-
},
2419
attributes: [
2520
{
2621
contentStyle: {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "v-calendar",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "A clean and extendable plugin for building simple attributed calendars in Vue.js.",
55
"keywords": [
66
"vue",

src/components/CalendarNav.vue

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,10 @@ $cellTransition: all 0.1s ease-in-out
355355
356356
.c-table-cell
357357
position: relative
358-
display: flex
359-
justify-content: center
360-
align-items: center
358+
// display: flex
359+
// flex-direction: column
360+
// justify-content: center
361+
// align-items: center
361362
user-select: none
362363
cursor: pointer
363364
width: 100%
@@ -381,15 +382,20 @@ $cellTransition: all 0.1s ease-in-out
381382
.c-label
382383
position: absolute
383384
font-size: 0.9rem
384-
transition: padding-bottom 0.1s ease-in-out
385+
top: 6px
386+
width: 100%
387+
text-align: center
388+
transition: top 0.1s ease-in-out
385389
&.has-indicators
386-
padding-bottom: 10px
390+
top: 2px
387391
388392
.c-indicators
393+
position: absolute
389394
display: flex
390395
justify-content: center
391396
align-items: center
392-
margin-top: 14px
397+
bottom: 5px
398+
width: 100%
393399
transition: $cellTransition
394400
.c-indicator
395401
width: 5px

0 commit comments

Comments
 (0)