From c5a300092585d5b8ff09e601148ef219a71750c7 Mon Sep 17 00:00:00 2001 From: IITI-tushar <165766280+IITI-tushar@users.noreply.github.com> Date: Sat, 28 Dec 2024 10:48:07 +0530 Subject: [PATCH] updated tagtemplate and app.module (#2976) --- src/components/CheckIn/tagTemplate.ts | 11 ++--------- src/style/app.module.css | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/components/CheckIn/tagTemplate.ts b/src/components/CheckIn/tagTemplate.ts index a10dbca083..611dff7b83 100644 --- a/src/components/CheckIn/tagTemplate.ts +++ b/src/components/CheckIn/tagTemplate.ts @@ -1,4 +1,5 @@ import { Template } from '@pdfme/common'; +import styles from '../../style/app.module.css'; export const tagTemplate: Template = { schemas: [ @@ -6,15 +7,7 @@ export const tagTemplate: Template = { { name: 'name', type: 'text', - position: { x: 14.91, y: 27.03 }, - width: 58.55, - height: 5.67, - alignment: 'center', - fontSize: 16, - characterSpacing: 0, - lineHeight: 1, - fontName: 'Roboto', - fontColor: '#08780b', + className: `${styles['tag-template-name']}`, } , ], ] as any, diff --git a/src/style/app.module.css b/src/style/app.module.css index 6be00d217a..9480b80d20 100644 --- a/src/style/app.module.css +++ b/src/style/app.module.css @@ -460,6 +460,20 @@ } } +.tag-template-name { + position: absolute; + left: 14.91px; + top: 27.03px; + width: 58.55px; + height: 5.67px; + text-align: center; + font-family: 'Roboto', sans-serif; + font-size: 16px; + letter-spacing: 0; + line-height: 1; + color: #08780b; +} + .subTagsLink i { visibility: hidden; }