Skip to content

Commit a066be0

Browse files
authored
Merge pull request #1730 from kei95/changeAgendaStyle
Modify style of agenda calendar's scrollView
2 parents 7b8c924 + a29deef commit a066be0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/agenda/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,6 @@ export default class Agenda extends Component<AgendaProps, State> {
451451
const scrollPadStyle = {
452452
height: KNOB_HEIGHT,
453453
top: scrollPadPosition,
454-
left: (this.viewWidth - 80) / 2
455454
};
456455

457456
return (

src/agenda/style.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ export default function styleConstructor(theme: Theme = {}) {
4949
},
5050
scrollPadStyle: {
5151
position: 'absolute',
52-
width: 80
52+
width: '100%',
53+
alignSelf: 'center'
5354
},
5455
// @ts-expect-error
5556
...(theme['stylesheet.agenda.main'] || {})

0 commit comments

Comments
 (0)