Skip to content

Commit

Permalink
prettier.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Rosenau authored and Nick Rosenau committed Nov 29, 2023
1 parent 728e854 commit 4283977
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions src/Linear/Annotations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,9 @@ const SingleNamedElement = (props: {
let fontSize = 12;
if (element.font?.fontSize) {
// 19 is a subjective limit to fontSize that will fit inside bounds of annotation. If larger than 19, cap it.
if(element.font.fontSize > 19){
if (element.font.fontSize > 19) {
fontSize = 19;
}
else{
} else {
fontSize = element.font.fontSize;
}
}
Expand Down Expand Up @@ -223,9 +222,9 @@ const SingleNamedElement = (props: {
break;
}
}
let borderColor:string | null = null
let borderColor: string | null = null;
if (element.border?.borderColor) {
borderColor = element.border.borderColor
borderColor = element.border.borderColor;
}

let fontFamily: string | undefined = undefined;
Expand Down
2 changes: 1 addition & 1 deletion src/elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface Font {
}

interface Border {
style?: "dashed" | "dotted" | "bold"
style?: "dashed" | "dotted" | "bold";
borderColor?: string;
}

Expand Down

0 comments on commit 4283977

Please sign in to comment.