mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-05 22:38:48 +00:00
Disable textOrientation property for calendar events on month view (#1512)
This commit is contained in:
parent
828e35094e
commit
aa0265c6cd
1 changed files with 4 additions and 1 deletions
|
|
@ -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 };
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue