Eleanor trait: Each Great Work in her cities causes foreign cities within 9 tiles to lose 1 Loyalty per turn. Any foreign city that leaves its civilization due to loss of Loyalty (1) and is receiving the most Loyalty pressure from Eleanor (2) instantly joins her empire, instead of becoming a Free City.
So, in order to trigger the leader trait, the target city must satisfy both (1) and (2).
However, in the screenshot below, there is no way Vasteras (found by Sweden) received most loyalty pressure from Eleanor. The only French city within 9 tiles is Calais, which has 3 populations and is soon-to-be rebel. Calais has neither Great Work nor high population to create a strong loyalty pressure toward Vasteras. Somehow, the condition (2) was unchecked and Eleanor can annex any disloyal city within 9 tiles, no matter how much pressure that city received from Eleanor.
So, in order to trigger the leader trait, the target city must satisfy both (1) and (2).
However, in the screenshot below, there is no way Vasteras (found by Sweden) received most loyalty pressure from Eleanor. The only French city within 9 tiles is Calais, which has 3 populations and is soon-to-be rebel. Calais has neither Great Work nor high population to create a strong loyalty pressure toward Vasteras. Somehow, the condition (2) was unchecked and Eleanor can annex any disloyal city within 9 tiles, no matter how much pressure that city received from Eleanor.