react-thermal-printer icon indicating copy to clipboard operation
react-thermal-printer copied to clipboard

Row Alignment Issues center alignment not working in star printer

Open hempun10 opened this issue 8 months ago • 0 comments

 <Printer type="star" width={42} encoder={encoder}>
        <Text bold={true} align="left" size={{ width: 2, height: 2 }}>
          KOT: #1
        </Text>
        <Br />
        <Text>Dine In</Text>
        <Text>Space: Private Room</Text>
        <Text>Table: Table 2</Text>
        <Text>Date: 12th June 2024</Text>
        <Text>Status: Mixed</Text>
        <Text>Created by: Sushil</Text>
        <Br />
        <Row
          left={"Item"} 
          className="grid grid-cols-3 items-center"
          center={"Status"}
          right="Qty"
        />
        <Line />
        <Row left="Chicken Biryani"  center="Ready" right="1" />
        <Row left="Mutton Biryani"  center="Ready" right="2" />
        <Row left="Paneer Biryani"  center="Ready" right="3" />
        <Row left="Veg Biryani"  center="Ready" right="4" />
        <Line />
        <Row left="Total" right="3" />
        <Cut />
      </Printer>

IMG_1349

@seokju-na @Hassan-jr

hempun10 avatar Jun 15 '24 10:06 hempun10