set shared-component figure to max-width instead of width