diff --git a/frontend/components/FactionLink.tsx b/frontend/components/FactionLink.tsx index 8841a67a..9f8bf7f1 100644 --- a/frontend/components/FactionLink.tsx +++ b/frontend/components/FactionLink.tsx @@ -18,7 +18,7 @@ const FactionLink = (props: FactionLinkProps) => { } return ( - + {props.includeIcon && } {props.faction.getName()} Faction diff --git a/frontend/components/SenatorLink.tsx b/frontend/components/SenatorLink.tsx index 32d12853..e6ccf0b1 100644 --- a/frontend/components/SenatorLink.tsx +++ b/frontend/components/SenatorLink.tsx @@ -16,7 +16,7 @@ const SenatorLink = (props: SenatorLinkProps) => { } return ( - {props.senator.displayName} + {props.senator.displayName} ) } diff --git a/frontend/components/SenatorListItem.tsx b/frontend/components/SenatorListItem.tsx index 38c72736..4148f80c 100644 --- a/frontend/components/SenatorListItem.tsx +++ b/frontend/components/SenatorListItem.tsx @@ -65,7 +65,7 @@ const SenatorListItem = ({ senator, ...props }: SenatorListItemProps) => {
-

+

{props.selectableSenators ? : {senator.displayName}}

{faction ? (props.selectableFactions && diff --git a/frontend/components/SenatorPortrait.module.css b/frontend/components/SenatorPortrait.module.css index 7433df51..4f9154fb 100644 --- a/frontend/components/SenatorPortrait.module.css +++ b/frontend/components/SenatorPortrait.module.css @@ -1,3 +1,7 @@ +.senatorPortrait { + user-select: none; +} + .senatorPortrait.selectable { cursor: pointer; @@ -23,10 +27,6 @@ margin-inline-end: 0; } -.senatorPortrait>figure { - background-color: var(--foreground-color); -} - .bg { position: absolute; } diff --git a/frontend/components/SenatorPortrait.tsx b/frontend/components/SenatorPortrait.tsx index 8f000379..fcf50881 100644 --- a/frontend/components/SenatorPortrait.tsx +++ b/frontend/components/SenatorPortrait.tsx @@ -192,6 +192,7 @@ const SenatorPortrait = ({ senator, size, ...props }: SenatorPortraitProps) => { } // Get JSX for the portrait + const PortraitElement = props.selectable ? 'button' : 'div' const getPortrait = () => { return ( { ) } - const PortraitElement = props.selectable ? 'button' : 'div' if (props.nameTooltip) { return {getPortrait()} } else {