What decides the answer is that the truck is changing lanes and the car is not. The
sign warns that the road narrows on the right, so the truck has turned on its left turn signal and is moving into the left lane. When changing lanes, a driver must give way to vehicles in the next lane that are going the same way without changing direction. The car is doing exactly that, going straight in the left lane, so the truck gives way to it and moves over behind it or once there is room. The narrowing itself gives no priority: the sign only warns about it