From aa0265c6cd2ee0307f50e70eb737d04166b88a0a Mon Sep 17 00:00:00 2001 From: Sherfin Shamsudeen Date: Mon, 6 Dec 2021 15:38:23 +0530 Subject: [PATCH] Disable textOrientation property for calendar events on month view (#1512) --- frontend/src/Editor/Components/Calendar.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/Editor/Components/Calendar.jsx b/frontend/src/Editor/Components/Calendar.jsx index 977258dd97..a2beb268ff 100644 --- a/frontend/src/Editor/Components/Calendar.jsx +++ b/frontend/src/Editor/Components/Calendar.jsx @@ -26,6 +26,7 @@ export const Calendar = function ({ containerProps, removeComponent, setExposedVariable, + exposedVariables, }) { const style = { height }; const resourcesParam = properties.resources?.length === 0 ? {} : { resources: properties.resources }; @@ -38,7 +39,9 @@ export const Calendar = function ({ const eventPropGetter = (event) => { const backgroundColor = event.color; const textStyle = - event.textOrientation === 'vertical' ? { writingMode: 'vertical-rl', textOrientation: 'mixed' } : {}; + event.textOrientation === 'vertical' && exposedVariables.currentView != 'month' + ? { writingMode: 'vertical-rl', textOrientation: 'mixed' } + : {}; const color = event.textColor ?? 'white'; const style = { backgroundColor, ...textStyle, padding: 3, paddingLeft: 5, paddingRight: 5, color };