I agree what you did was just fine....giving her condolances and leaving her alone to be with her family. A card and flowers is not necessary unless she lost her mother recently.....this was 3 years ago, and you weren't even in the picture then so there was nothing more you needed to do.
She will be back to her normal self in a few days so just wait til she is done with her grieving.