slope=tan(theta)=height/base
According to special relativity length perpendicular to the motion will not change. So, the height of the triangle will remain same. But as the motion is parallel to the base the base will be lorentz contracted from the perspective of the person in train. So, from the the perspective of the person in the train the slope of the triangle will be greater than from the perspective of the person on the platform.