tweak: minor aesthetic tweaks

This commit is contained in:
NunoSempere 2022-05-19 17:50:46 -04:00
parent 3230c0d0c8
commit 51bdfc915d
2 changed files with 13 additions and 11 deletions

View File

@ -31,13 +31,15 @@ const getVictoryGroup = ({
name={`line-${i}`} name={`line-${i}`}
style={{ style={{
data: { data: {
strokeOpacity: highlight ? 1 : 0.5, // strokeOpacity: highlight ? 1 : 0.5,
strokeOpacity: 0.6,
strokeWidth: 3,
}, },
}} }}
/> />
<VictoryScatter <VictoryScatter
name={`scatter-${i}`} name={`scatter-${i}`}
size={({ active }) => (active || highlight ? 3.75 : 3)} size={({ active }) => (active || highlight ? 0 : 0)} //(active || highlight ? 3.75 : 3)}
/> />
</VictoryGroup> </VictoryGroup>
); );
@ -56,9 +58,9 @@ export const InnerChart: React.FC<Props> = ({
maxProbability < 0.5 ? Math.round(10 * (maxProbability + 0.05)) / 10 : 1; maxProbability < 0.5 ? Math.round(10 * (maxProbability + 0.05)) / 10 : 1;
const padding = { const padding = {
top: 20, top: 20,
bottom: 65, bottom: 75,
left: 60, left: 70,
right: 5, right: 17,
}; };
return ( return (
@ -135,8 +137,8 @@ export const InnerChart: React.FC<Props> = ({
}} }}
tickLabelComponent={ tickLabelComponent={
<VictoryLabel <VictoryLabel
dx={-38} dx={-40}
dy={-5} dy={0}
angle={-30} angle={-30}
style={{ fontSize: 15, fill: "#777" }} style={{ fontSize: 15, fill: "#777" }}
/> />

View File

@ -58,17 +58,17 @@ const LargeQuestionCard: React.FC<{
target="_blank" target="_blank"
> >
{question.title}{" "} {question.title}{" "}
<FaExternalLinkAlt className="text-gray-400 inline sm:text-3xl text-xl mb-1" />
</a> </a>
</h1> </h1>
<div className="flex gap-2 mb-10"> <div className="flex gap-2 mb-3">
<a <a
className="text-black no-underline bg-red-300 rounded p-1 px-2 text-xs hover:text-gray-600" className="text-black no-underline border-2 rounded-lg border-gray-400 rounded p-1 px-2 text-2xs hover:text-gray-600"
href={question.url} href={question.url}
target="_blank" target="_blank"
> >
{question.platform.label} {question.platform.label}{" "}
<FaExternalLinkAlt className="text-gray-400 inline sm:text-md text-md mb-1" />
</a> </a>
<Stars num={question.qualityIndicators.stars} /> <Stars num={question.qualityIndicators.stars} />
</div> </div>