fix(pdf): mirror the award title and date right to left
@@ -614,11 +614,13 @@ const stackedSidebarSplitRowStyle = {
|
||||
alignItems: "flex-start",
|
||||
} satisfies Style;
|
||||
|
||||
const awardTitleDateRowStyle = {
|
||||
flexDirection: "row",
|
||||
alignItems: "flex-start",
|
||||
justifyContent: "space-between",
|
||||
} satisfies Style;
|
||||
// The date stays beside the title in every template, even where `splitRow` stacks; right to left, it's mirrored.
|
||||
const awardTitleDateRowStyle = (rtl: boolean) =>
|
||||
({
|
||||
flexDirection: rtl ? "row-reverse" : "row",
|
||||
alignItems: "flex-start",
|
||||
justifyContent: "space-between",
|
||||
}) satisfies Style;
|
||||
|
||||
const useSectionSplitRowStyle = () => {
|
||||
const placement = useTemplatePlacement();
|
||||
@@ -1312,7 +1314,7 @@ const AwardsSection = ({ sectionId = "awards", sectionData }: ItemSectionProps<A
|
||||
{items.map((item) => (
|
||||
<SectionItem key={item.id} itemId={item.id}>
|
||||
<SectionItemHeader>
|
||||
<ItemHeaderRow style={composeStyles(splitRowStyle, awardTitleDateRowStyle)}>
|
||||
<ItemHeaderRow style={composeStyles(splitRowStyle, awardTitleDateRowStyle(data.rtl))}>
|
||||
<ItemTitle field="title" website={item.website} bold={false}>
|
||||
{item.title}
|
||||
</ItemTitle>
|
||||
|
||||
|
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
@@ -10,8 +10,8 @@
|
||||
}
|
||||
],
|
||||
"rasterSha256": [
|
||||
"86a2f2b432c9fe55ee64476746925aca9928654f4827555a525af2c88634abd4",
|
||||
"d65137a8b4dbb4a2fea90d9483d7f5ce2d169600f273a46028bb5fedccc4f57d"
|
||||
"4b634cf899af58cbea187c90effd50e4288e3a4ec5ca1f867479a55b8ec86e4d",
|
||||
"865875b1034879c09120ef6a6207e4b2ae4220084a569a397567b7ef3eb89da6"
|
||||
],
|
||||
"coordinates": {
|
||||
"EXP_LONG": [
|
||||
@@ -72,7 +72,7 @@
|
||||
],
|
||||
"AWARD_DATE": [
|
||||
{
|
||||
"x": 472.8,
|
||||
"x": 28,
|
||||
"y": 313.62,
|
||||
"width": 94.47,
|
||||
"text": "2021 AWARD_DATE"
|
||||
@@ -128,7 +128,7 @@
|
||||
],
|
||||
"CUSTOM_AWARD_DATE": [
|
||||
{
|
||||
"x": 423.91,
|
||||
"x": 28,
|
||||
"y": 503.52,
|
||||
"width": 143.36,
|
||||
"text": "2024 CUSTOM_AWARD_DATE"
|
||||
|
||||
|
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 92 KiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
@@ -10,8 +10,8 @@
|
||||
}
|
||||
],
|
||||
"rasterSha256": [
|
||||
"5f3fab93da6bdea091c5b1e44eac66d84be1da406bb1a930ffb4799d3c8166a5",
|
||||
"ede3c188d2c8da4f0b34d3f903577829e524028e4293358028c10aa2b4fa6f45"
|
||||
"7a77b9733159cd9f96fc0f13548001591a23deb0b2a2f9ff69b7d17c1816f9c4",
|
||||
"ab9e9f9c06b4eeeadad2e0ec95377633795350c84481e0e1ccc7108cf390d60c"
|
||||
],
|
||||
"coordinates": {
|
||||
"EXP_LONG": [
|
||||
@@ -72,7 +72,7 @@
|
||||
],
|
||||
"AWARD_DATE": [
|
||||
{
|
||||
"x": 472.8,
|
||||
"x": 28,
|
||||
"y": 276.02,
|
||||
"width": 94.47,
|
||||
"text": "2021 AWARD_DATE"
|
||||
@@ -128,7 +128,7 @@
|
||||
],
|
||||
"CUSTOM_AWARD_DATE": [
|
||||
{
|
||||
"x": 423.91,
|
||||
"x": 28,
|
||||
"y": 470.67,
|
||||
"width": 143.36,
|
||||
"text": "2024 CUSTOM_AWARD_DATE"
|
||||
|
||||